Wanting to connect a slider to a scroll area which contains buttons?
-
Oh okay thanks there Eddy :) helped me alot brb ill see if i can get it too work
-
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
-
[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.htmlyou 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.
-
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
-
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
-
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
-
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
-
[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.
-
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! :)
-
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. -
ill read the book :)
-
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
-
OK :)