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

Update of Gui-Elements



  • Hei all,

    I'm new to Qt, therefore I hope, my question isn't to silly!

    I have a desktop application with a main-window, toolbar, statusbar and some other gui-elements.

    Now I need to update the gui-elements. Depending on the current application state, the actions, buttons etc. are disabled, enabled, checked or unchecked.

    In former windows days there was a central method (OnUpdateCmdUi) in which I updates all the gui elements.
    No I'm wondering, how to do this in a proper and elegant way in Qt.

    Thanks for your hints


  • Moderators

    @PoetikBiker said in Update of Gui-Elements:

    No I'm wondering, how to do this in a proper and elegant way in Qt.

    You should use signals and slots for that. This way you can react precisely to all changes, exactly when they happen.



  • hi,

    If you want to make your desktop application in a proper and elegant way in Qt.Then you need to look few examples in the following link. It will teach you how and what the UI control elements available in Qt.
    here


Log in to reply