Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Different versions of application
QtWS25 Last Chance

Different versions of application

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 2.1k Views
  • 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 Offline
    B Offline
    BonRouge
    wrote on last edited by
    #1

    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
    0
    • K Offline
      K Offline
      kalster
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BonRouge
        wrote on last edited by
        #3

        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
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          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
          0
          • EddyE Offline
            EddyE Offline
            Eddy
            wrote on last edited by
            #5

            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
            0
            • B Offline
              B Offline
              BonRouge
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved