On Thu, Apr 14, 2016 at 8:36 PM, Boudewijn Rempt <b...@valdyas.org> wrote: > I got this bug report > > https://bugs.kde.org/show_bug.cgi?id=361766 > > And sure enough, when I tested it, the reporter was right. The context menu > actions weren't triggered. I checked, and this worked > with Qt 5.4, but no longer with 5.5 or 5.6. > > This is the code: > > QMenu menu(this); > QAction* action = menu.addAction(d->detached ? i18n("Attach to Toolbar") > : i18n("Detach from Toolbar")); > connect(action, SIGNAL(triggered()), this, SLOT(switchDetached())); > menu.exec(e->globalPos()); > > And the switchDetached() slot isn't called anymore. Has our code > always been wrong, or is this a real regression in Qt?
Could you please create a _complete_ testcase and submit it to the bugtraq? Otherwise it will get forgotten... Thank you, -- Giuseppe D'Angelo _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest