Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Different versions of application

    General and Desktop
    4
    6
    1754
    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.
    • B
      BonRouge last edited by

      I would like to have two versions of the same application - the same basic code, but looking different. For different users, I want to show different interfaces, with more or fewer buttons and text.

      What's the best way to go about this?

      Thanks for any help.

      1 Reply Last reply Reply Quote 0
      • K
        kalster last edited by

        use a combobox for the user to select the version and then use "if" command with the combobox variable

        1 Reply Last reply Reply Quote 0
        • B
          BonRouge last edited by

          I'm sorry. Maybe I wasn't very clear. I'm pretty much a beginner here. I have an application with a GUI that I'm making with Qt Creator. That's where I'm to. I'd like to basically copy that interface, remove some buttons and change some text. I'm not sure how to do that. How do I actually have two different interfaces for the same functions?

          1 Reply Last reply Reply Quote 0
          • G
            giesbert last edited by

            Why not just hide the widgets you don't need and then change the text of the widgets that need to be changed?
            "like in this example in the docs":http://doc.qt.nokia.com/4.7/dialogs-extension.html

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply Reply Quote 0
            • E
              Eddy last edited by

              If I understand you correctly you want dynamic dialogs which are explained in "the official Qt book":http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip.

              Have a look at chapter 2 subtitle : "dynamic dialogs" for an example.

              For changing the text you can use a label and change it's text.

              Qt Certified Specialist
              www.edalsolutions.be

              1 Reply Last reply Reply Quote 0
              • B
                BonRouge last edited by

                Useful answers. Thanks a lot! I'll see what I can do.

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