Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Wanting to connect a slider to a scroll area which contains buttons?

Wanting to connect a slider to a scroll area which contains buttons?

Scheduled Pinned Locked Moved Qt Creator and other tools
32 Posts 3 Posters 11.7k 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.
  • T Offline
    T Offline
    theblizzfreak
    wrote on last edited by
    #20

    haha np ill explain again basically i want a slider that makes my ScrollArea Window with buttons inside move up and down based on the slider :)

    like the scroll bar on a webbrowser where you can go up and down the webpage but for buttons in an application :) thanks in advance if you need some visual examples ill get some pictures

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #21

      The ui example i made for you has a scrollbar if the dialog is too small for all the buttons. You can scroll down and up.

      I have 3 buttons in a scrollarea in a layout.

      If that's not what you want please give us a picture.

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • T Offline
        T Offline
        theblizzfreak
        wrote on last edited by
        #22

        how do i give the slider an action to make it move the buttons up or down on the vertical layout ?

        i tried using the Signal and Slots editor but it dont make any sense to me accept that i can connect things together

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #23

          Have you tried my example?

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • T Offline
            T Offline
            theblizzfreak
            wrote on last edited by
            #24

            yes :) iv looked at it but it all looks the same in terms of how i structure the gui ? what am i missing? this QT is very strange to work with

            1 Reply Last reply
            0
            • EddyE Offline
              EddyE Offline
              Eddy
              wrote on last edited by
              #25

              [quote author="theblizzfreak" date="1310934733"]yes :) it all looks the same in terms of how i structure the gui ?[/quote]

              i don't understand this. Can you explain more?

              Edit : please don't change your post afterwards. It makes things even more complicated to follow. Use the edit button on the right like I did.

              Qt Certified Specialist
              www.edalsolutions.be

              1 Reply Last reply
              0
              • T Offline
                T Offline
                theblizzfreak
                wrote on last edited by
                #26

                when i look at your example and my example they look exactly the same the only difference is yours actually moves the buttons and i dont know how to do that? please can you tell me how you did it exactly and also tell me how you figured that out please thanks! :)

                1 Reply Last reply
                0
                • EddyE Offline
                  EddyE Offline
                  Eddy
                  wrote on last edited by
                  #27

                  You can see the structure of what i did on the right in Qt Designer.
                  I explained where you could find the buttons to add layouts, i even gave you a link to the docs where the details are explained. I suggest you go back in time and read all the posts in a chronological order. Follow the suggestions made like reading the tutorials, wiki or whatever.
                  If you still feel lost i strongly advise you to read a good book about Qt to get the overview you need to understand all the details. "Here is a good book :":http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip.
                  Read the first chapters and you will feel much comfortable using Qt.

                  Qt Certified Specialist
                  www.edalsolutions.be

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    theblizzfreak
                    wrote on last edited by
                    #28

                    ill read the book :)

                    1 Reply Last reply
                    0
                    • EddyE Offline
                      EddyE Offline
                      Eddy
                      wrote on last edited by
                      #29

                      Ok, enjoy it!

                      If you have more questions feel free to ask here. I suggest to start a new topic with as much detail about what you want as possible. Show your code or what you have accomplished yet.

                      This will be easier for others to help you.

                      Qt Certified Specialist
                      www.edalsolutions.be

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        theblizzfreak
                        wrote on last edited by
                        #30

                        what does it mean by application-wide resources. in the book? my guess was like the applications overall coding bytes management? on page 21

                        its located 5 lines up from the bottom of the page

                        1 Reply Last reply
                        0
                        • EddyE Offline
                          EddyE Offline
                          Eddy
                          wrote on last edited by
                          #31

                          QApplication is a QObject that is run as your program. It handles a lot of things like user interaction. You can read more on it in the docs. But i suggest to read further on first to get the general understanding of Qt.

                          Qt Certified Specialist
                          www.edalsolutions.be

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            theblizzfreak
                            wrote on last edited by
                            #32

                            OK :)

                            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