Details
-
Bug
-
Resolution: Invalid
-
P4: Low
-
4.4.3
-
None
Description
QActions with status tips set should display a status tip in the status bar any time a QAction is used. This means not only in menubars but in context menus as well. Currently status tips will only work in a context menu when a QAction is parented to the main window and even then Bug #225198 occurs. Support for using QAction::statusTip should be more universal, and not just with a MenuBar's menu.
Example:
#include <QtGui>
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0)
: QMainWindow(parent)
private slots:
void showContextMenu(const QPoint &pos)
private:
QMenu *contextMenu;
};
#include "main.moc"
int main(int argc, char **argv)
{
QApplication a(argc, argv);
MainWindow mw;
mw.show();
return a.exec();
}