Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Update to Qt Creator 4.2.0 / Qt 5.7.1 fails to realize Menu Shortcuts



  • I have just updated to Qt Creator 4.2.0 with Qt 5.7.1 using GCC 4.9.1 on Ubuntu. Previously my shortcut buttons in the QMenu of the QMainWindow worked perfectly fine. But since the update, these shortcuts no longer trigger the actions. I didn't change anything to my code. Do other people have similar experiences??


  • Lifetime Qt Champion

    Hi,

    Can you provide a minimal sample code that shows the change of behaviour ?



  • I have no idea what code to share as I didn't change anything. In fact, I did some experimenting on other machines with older versions as listed below and there the very same code works perfectly. It really is caused by updating Qt Creator...

    Qt Creator 4.03 with Qt 5.7.0 (CLang 7.0, 64bit)
    Qt Creator 4.03 with Qt 5.7.0 (GCC 4.9.1, 64bit)
    Qt Creator 3.5.1 with Qt5.5.1 (MSVC 2013, 32bit)

    Perhaps interesting to observe is that after this update of Qt Creator, the menu bar is no longer located at my application's main window but at the general menu bar of Ubuntu (like on Mac). Nevertheless, nothing changed in my code...


  • Lifetime Qt Champion

    Something a simple as a minimal QMainWindow initialisation that works correctly with what you consider your old version of Qt and that doesn't work with your new version.

    Just to be sure: did you upgrade Qt through the online installer or did you change from your distribution provided Qt to the official package version ?



  • I updated based on a pop-up that appeared when I started Qt Creator this evening. So, it was the "MaintenanceTool" that comes with the installation of Qt Creator


  • Lifetime Qt Champion

    So through the official package ?



  • Yes, I believe so


  • Lifetime Qt Champion

    And from which version did you update ? 5.7.0 or older ?



  • I updated from Qt 5.7.0. Is it possible to easily revert this update?


  • Lifetime Qt Champion

    @ModelTech
    Hi
    As far as i know you cannot revert as such but
    what i normally do for such test is just to rename the Qt folder for that version i wish to downgrade. Then install the wanted version. after i simply delete the new and rename the original back.
    This is on windows however, so your mileage will vary.


  • Moderators

    @ModelTech said in Update to Qt Creator 4.2.0 / Qt 5.7.1 fails to realize Menu Shortcuts:

    I have just updated to Qt Creator 4.2.0 with Qt 5.7.1 using GCC 4.9.1 on Ubuntu. Previously my shortcut buttons in the QMenu of the QMainWindow worked perfectly fine. But since the update, these shortcuts no longer trigger the actions. I didn't change anything to my code. Do other people have similar experiences??

    Someone else just posted this same problem a few minutes ago when he upgraded from 5.7 to 5.71 under linux. I'm guessing it's an actual bug then with 5.7.1 and should be reported.

    Easy enough to test, build with 5.7.0 and if it works then it's more than likely a bug. :)


Log in to reply