|Subject:||QCheckBox alignment to center in QGridLayout using Qt Designer|
|Date:||Mon, 18 Feb 2008 23:34:29 +0800|
I thought this is a simple problem but I have not managed to figure out how to do that yet.
There is a QGridLayout into what there has to be inserted a number of QCheckBoxes. Those QCheckBoxes have their size limited to 13x13 pixels and has no text added. The cell those are inserted are 80..120 pixels wide. The QCheckBoxes should be in the middle of the cells but that does not seem to be working even after using styleSheets like "text-align: center;" or "horizontal-align: center;".
I would not like to get into coding or overriding class just drag and drop with Qt Designer. How is that possible to get it done?
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||Re: Cannot create children for a parent that is in a different thread?, Kermit Mei|
|Next by Date:||Re: How to resize a ui widget ?, J-P Nurmi|
|Previous by Thread:||ListView and external Stylesheet, Karl-Heinz Reichel|
|Next by Thread:||QEventLoop IncludeSocketNotifiers, EJS|
|Indexes:||[Date] [Thread] [Top] [All Lists]|