Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Mac, 4.8.5: QAction in main menu not obeying AboutRole menu role

$
0
0
Hi all, my “About…” menu item is acting weird. It’s an application ported from Qt 5.2, used to work in 4.8.4 as well. When triggering the menu item in the Applications menu, the signal triggers a page load from about.com (It’s a browser like application, and there’s NO signal/slot telling it to do that!). In the Help menu, the menu item resides as well (which is not the behavior I’m seing in 5.2 or 4.8.5 as I recall; Qt moves the menu item to the Application menu when it sees a QAction with one of the roles QuitRole, AboutRole or PreferencesRole. From the Help menu, the About… menu item is triggered just fine. The other roles works fine. I quadruple checked, and the QAction in question does have role set as AboutRole. Any suggestions/ideas? Edit: Snippet from the .ui file defining the QAction. I can’t see any funkiness compared to the others: <action name="actionAbout">    <property name="text">     <string>About</string>    </property>    <property name="visible">     <bool>true</bool>    </property>    <property name="menuRole">     <enum>QAction::AboutRole</enum>    </property>   </action>

Viewing all articles
Browse latest Browse all 13965

Trending Articles