QMenu::aboutToShow doesn't send on use appmenu

Bug #1449373 reported by Igor Nikitin
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
appmenu-qt5
New
Undecided
Unassigned
appmenu-qt (Ubuntu)
New
Undecided
Unassigned

Bug Description

Minimal example:

#include <QtCore>
#include <QtWidgets>

int main( int argc, char** argv )
{
    QApplication a( argc, argv );
    QMainWindow w;

    QMenu* m = w.menuBar()->addMenu( "File" );
    m->addAction( "New" );
    QObject::connect( m, &QMenu::aboutToShow, [](){ qDebug() << "aboutToShow"; } );

    w.show();
    return a.exec();
}

If call 'w.menuBar()->setVisible( true );' to force show menubar inside a window than 'aboutToShow' will send.

Revision history for this message
Igor Nikitin (igor-nikitin-v) wrote :

Ubuntu 15.04 64 bit, appemenu-qt 0.3.0+15.04.20150121-0ubuntu3

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.