PDA

View Full Version : Position Object in QT?



kokonomutsu
5th October 2011, 03:42
Hi everyone!
I'm a newbie and I want to ask about the position of Object in QT user interface.
Every thing was created by code, not use *.ui.
- First, I create a QHBoxLayout, How can I locate it in the screen and How can I resize it?
- Second, In QHBoxLayout I create array of labels. How can I locate and resize them?
- Third, I want to create two demension array of labels and display in a screen? I must to create many QHBoxLayout or how another way to do it?
Thanks in advance!

ChrisW67
5th October 2011, 06:58
Hi everyone!
I'm a newbie and I want to ask about the position of Object in QT user interface.
Every thing was created by code, not use *.ui.
- First, I create a QHBoxLayout, How can I locate it in the screen and How can I resize it?

Read Layout Management and read through the Layout Examples. Layouts size their content within constraints you provide to occupy the space available in the container the layout is applied to.


- Second, In QHBoxLayout I create array of labels. How can I locate and resize them?

See the last response.


- Third, I want to create two demension array of labels and display in a screen? I must to create many QHBoxLayout or how another way to do it?

QGridLayout or QHboxLayout nested in QVBoxLayout

kokonomutsu
11th October 2011, 09:37
Thank ChrisW67 so much. ^^