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

QWinHost and QShortcut



  • Currently I have an issue with getting a qshortcut to trigger correctly. I have tried adding it to both the toolbar and buttons on it. The shortcut works as long as I am inside the area that isnt a QWinHost object.

    The winhost has the default implementation that is suggested when setting up a controller for it.

    I was just wondering if its possible to get the QShortcuts to work even if the QWinhost widget has focus ?

    I have tried surfing the forums for a few hours but cant seem to find any useful intel on this please help :)

    The setup I have inside my window is mainwindow, splitter, one side is text the other one is qwinhost with a widget inside. The shortcut works everywhere except inside here.

    Best regards
    Mrhadley


Log in to reply