gmat4321
18th February 2011, 21:04
I'm trying control the spacing of a QFrame within a QFrame using a stylesheet. If you create a frame in a frame with designer this is what it looks like: (please click Open just below that name to see the image)
https://docs.google.com/leaf?id=0B3aCqhEEDrMLZmVkNDVkNjAtNzExYS00YjY1LWI1O WMtYTA0ZmU1ZTVhODU1&hl=en&authkey=CJfEnKkE
In designer there are layout margins you can set. They default to 9.
https://docs.google.com/leaf?id=0B3aCqhEEDrMLM2YyOTI1OGEtZDk2Yi00OGYyLWE1N 2YtNzBmOGYyNTJlM2Ew&hl=en&authkey=CM6XmtIC
If you change the Margins to 0 (zero) on both Frames this is what the frame in frame will look like.
https://docs.google.com/leaf?id=0B3aCqhEEDrMLY2JkNWNmODYtODkzZi00YjUwLThiZ TUtYmI1OTdmMTI5NGJj&hl=en&authkey=CKTJz-UD
This is what I want to do from a Stylesheet.
In my stylesheet I've done both:
QFrame::layout { margin: 0px }
QFrame {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
spacing: 0px;
padding: 0px;
}
Based upon looking at the designer it appears that layout is a sub-control of the frame, but I haven't found any documentation about layouts in the stylesheet documents.
Has anyone done this, I expect is is easy.
https://docs.google.com/leaf?id=0B3aCqhEEDrMLZmVkNDVkNjAtNzExYS00YjY1LWI1O WMtYTA0ZmU1ZTVhODU1&hl=en&authkey=CJfEnKkE
In designer there are layout margins you can set. They default to 9.
https://docs.google.com/leaf?id=0B3aCqhEEDrMLM2YyOTI1OGEtZDk2Yi00OGYyLWE1N 2YtNzBmOGYyNTJlM2Ew&hl=en&authkey=CM6XmtIC
If you change the Margins to 0 (zero) on both Frames this is what the frame in frame will look like.
https://docs.google.com/leaf?id=0B3aCqhEEDrMLY2JkNWNmODYtODkzZi00YjUwLThiZ TUtYmI1OTdmMTI5NGJj&hl=en&authkey=CKTJz-UD
This is what I want to do from a Stylesheet.
In my stylesheet I've done both:
QFrame::layout { margin: 0px }
QFrame {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
spacing: 0px;
padding: 0px;
}
Based upon looking at the designer it appears that layout is a sub-control of the frame, but I haven't found any documentation about layouts in the stylesheet documents.
Has anyone done this, I expect is is easy.