Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
4.7.0, 5.4.2
-
None
-
Qt 4.7 Carbon on OSX 10.6
Description
Setting QGridLayout::spacing to 0 causes the labels of a checkbox (on left) and a QLabel (on the right) to overlap slightly. My best guess is that QCheckBox is not requesting how much space it actually needs.
#include <QtGui> int main( int argc, char **argv ) { QApplication a(argc, argv); QCheckBox* w1 = new QCheckBox("When placed very closely"); QLabel* w2 = new QLabel("labels begin to overlap with Qt/Carbon 4.7"); QWidget* cntr = new QWidget(); QGridLayout* grid = new QGridLayout(cntr); grid->addWidget(w1, 0,0); grid->addWidget(w2, 0,1); grid->setColumnStretch(2,1); grid->setSpacing(0); cntr->show(); a.exec(); return 0; }