mickey
19th June 2006, 18:06
Hi I've a qlabel; i'd like put onto it a lcd, a check box and a dial; how dispose them?
i'd like this; how do I use QBOXLayout ?
_________
|check|
| dial |lcd |
------------
e8johan
20th June 2006, 07:41
I would use a QGridLayout, or in Qt 3, a QGridWidget.
Big Duck
20th June 2006, 11:39
Using the QGridLayout,
the check would take up 2 columns and the
dial and lcd take 1 column each so:
gridLayout->addwidget( widget, row, 0 , column start, number of columns)
gridLayout->addwidget( check, 0, 0, 1, 2);
gridLayout->addwidget( dial , 1, 0, 1, 1);
gridLayout->addwidget( lcd , 1, 0, 2, 1);
something like that.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.