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?
QtWS25 Last Chance

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.6k 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
    #1

    hello i really wished i didnt have to come ask for help everytime i got stuck but because the documentation is not exactly precise i can not do it any other way so i ask how in the one of mothers heck! :D

    does one connect 1 slider to a scroll area with buttons and also how do i make the scroll area move with the slider position? and also explain how you figured it out so i can learn from you thanks! :)

    The QT Development Kit Rocks OtherWise! :D

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

      Can you show us the code you have made so far? Or are you using the ui designer in Qt Creator?

      Qt Certified Specialist
      www.edalsolutions.be

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

        using the lovely designer :D mostly because i love to focus more on creative problem solving then the hard tedious kind :D but that dont mean i dont like abit of coding :D love both anyways yes im using the UI Designer :)

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

          Ok, and can you provide us the ui file to look into?

          Qt Certified Specialist
          www.edalsolutions.be

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

            thats alot to look at are you shore?

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

              heres a link to download it http://www.2shared.com/file/sEd0hUOH/mainwindow.html

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

                In that case you could make a minimal example ui that shows only the problem you are having.

                Qt Certified Specialist
                www.edalsolutions.be

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

                  im sorry how would one go about doing that?? my guess is make a knew project and create a slider in the Designer and scroll area with a button and then give you the UI file?? :)

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

                    hold back not too fast ;-) , i will first look into the file you sent at the same time i asked for the minimal example.

                    Qt Certified Specialist
                    www.edalsolutions.be

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

                      ah HA :D typical situwations :P

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

                        ok, I got it.

                        It's easy to solve you need to use layouts.
                        "Here is a good explanation on how to use them :":http://doc.qt.nokia.com/4.7/layout.html

                        i have made a simple ui file you can look into. A picture tells more than 1000 words.... ;)
                        http://dl.dropbox.com/u/33544011/mainwindow.ui

                        If you have any more specific questions, feel free to ask.

                        Qt Certified Specialist
                        www.edalsolutions.be

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          koahnig
                          wrote on last edited by
                          #12

                          There is also a slider example which may provide you already at least some of the logics you need.
                          "Sliders Example ":http://doc.qt.nokia.com/4.7/widgets-sliders.html

                          Vote the answer(s) that helped you to solve your issue(s)

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

                            Hi koahnig,

                            theblizzfreak just needs a QScrollarea with widgets in a layout.

                            @theblizzfreak
                            i suggest to look into the sliders example later on, which is more detailed and offers a lot to learn about signal and slots also.

                            Qt Certified Specialist
                            www.edalsolutions.be

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

                              okay so how does one put a layout into a application and how does one structure it ;)

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

                                Oh okay thanks there Eddy :) helped me alot brb ill see if i can get it too work

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

                                  okay im totally stumped i dont even know where to start do i make a class? or use the QT Designer? where do i put the class,etc

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

                                    [quote author="theblizzfreak" date="1310929596"]okay so how does one put a layout into a application and how does one structure it ;)[/quote]

                                    In Qt Designer there are buttons for that.
                                    select the widgets you want in a layout and then click on one of the layout buttons.
                                    "A Quick Start to Qt Designer":http://developer.qt.nokia.com/doc/qt-4.7/designer-quick-start.html

                                    you can use the ui file i provided and replace it with the one you got by using the wizard to make a QMainwindow based program in Qt Creator.

                                    Qt Certified Specialist
                                    www.edalsolutions.be

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

                                      okay i have my layout and my button in my layout i have my slider :) and i also have a scroll area under my layout : ) now what do i do? :D

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

                                        Isn't that what you asked for? What else do you want to accomplish?

                                        Qt Certified Specialist
                                        www.edalsolutions.be

                                        1 Reply Last reply
                                        0
                                        • 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

                                          • Login

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