Qt-interest Archive, July 2007
QGridLayout icons/alignment issue
Message 1 in thread
I created a QGridLayout across the top of a QMainWindow.
I wanted the whole thing to be lined up against the right
hand side, so I added grid->setAlignment(Qt::AlignRight);
When I did this, all the icons became smaller and did not
stay right-aligned, it was left-aligned. When I tried
using AlignCenter, I got normal sized icons and they too
were aligned left. When I tried AlignLeft, it was left-
aligned and smaller icons.
What gives? Ive had so much trouble with the Layout stuff
messing with sizes and not doing what I want it to do,
reguardless of all the methods I try to use to control it.
Is this a bug? Its 4.3.0
Jeff
--
[ signature omitted ]
Message 2 in thread
I solved my issue, though to say exactly how I cannot say. It seems
like there
is a lot of interactions that take place within the layout call.. By
pure luck it seems
I got it to behave the way I wanted, well mostly.
Jeff
Jeff Lacki wrote:
>I created a QGridLayout across the top of a QMainWindow.
>I wanted the whole thing to be lined up against the right
>hand side, so I added grid->setAlignment(Qt::AlignRight);
>
>When I did this, all the icons became smaller and did not
>stay right-aligned, it was left-aligned. When I tried
>using AlignCenter, I got normal sized icons and they too
>were aligned left. When I tried AlignLeft, it was left-
>aligned and smaller icons.
>
>What gives? Ive had so much trouble with the Layout stuff
>messing with sizes and not doing what I want it to do,
>reguardless of all the methods I try to use to control it.
>
>Is this a bug? Its 4.3.0
>
>Jeff
>
>--
>To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
>List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
>
--
[ signature omitted ]