Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Update of Gui-Elements

    General and Desktop
    3
    3
    297
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PoetikBiker last edited by

      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

      sierdzio 1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators @PoetikBiker last edited by

        @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.

        (Z(:^

        1 Reply Last reply Reply Quote 1
        • IamSumit
          IamSumit last edited by IamSumit

          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

          Be Cute

          1 Reply Last reply Reply Quote 0
          • First post
            Last post