Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.2
-
None
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();
}