Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1179

Suggestion: make menu actions not set status text of main window when menu action does not have status tip set

    XMLWordPrintable

Details

    Description

      When having a QAction in a menu bar inside the QMainWindow, and the action does not have a status tip set, it set the status tip of the main window to a blank string when the menu action is hovered.

      It would be nice to have if a QAction in a menu that does not have the status tip set, would not trigger the blank string in the main window, but have the old status tip as long as an action that did not have the status tip explicitly set was hovered.

      Reproducible with the following example:

      // main.cpp
      #include <QtGui>

      int main(int argc, char* argv[])
      {
      QApplication a(argc, argv);
      QMainWindow w;
      w.menuBar()->addAction("foo"); // action "foo" has no status tip
      w.statusBar()->showMessage("bar"); // status message "bar" gets reseted as soon as "foo" is hovered
      w.show();
      return a.exec();
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes