QT Question - What are all these extra spaces for ? (pic provided)

Posted by mea on Stack Overflow See other posts from Stack Overflow or by mea
Published on 2010-05-21T04:58:45Z Indexed on 2010/05/21 5:00 UTC
Read the original article Hit count: 170

Filed under:
|

stack overflow wont let me post images so heres the link:

http://4m0.org/images/qt.png

This is my application. For this question, ignore the top part with the buttons.

I have a QScrollArea

Filled with many QGroupBoxes

Filled with a horizontal box layout of QLabel (on the left) and QGroupBox (on the right)

The right side is a vertical box layout of QPushButtons

Every single element, the scrollarea, both boxes, the labels, and the buttons all have their style sheets modified so padding is 0px and margin is 0px.

Why do i have all this extra space?

The scroll area has space on all sides until its inner elements (the blue boxes) start. Then those boxes have space until its inner elements (the white boxes) start.

Can someone tell me what is going on?

© Stack Overflow or respective owner

Related posts about qt

Related posts about pyqt4