PDA

View Full Version : QGroupBox appearing in random colors (Qt 3.3)



jgver
11th February 2009, 22:16
We have several old legacy Qt 3 dialogs (actually PyQt 3 dialogs) that use QGroupBox. We've noticed that the group box frame, as well as the group box label, often appear in random colors, even though we are not specifically setting a color. Has anybody seen this behavior, or know if there were any bugs in Qt 3 (3.3 to be exact) regarding this?

Additionally, we also occasionally experience a crash in these dialogs, though the crash is infrequent enough that we can't really debug it. The last couple of entries in the call stack are as follows:

qt_mt333!QFontInfo::exactMatch+0x213
qt_mt333!QFont::cleanup+0xc8
qt_mt333!QFont::handle+0x36
qt_mt333!QWidget::setFontSys+0x2f
qt_mt333!QWidget::create+0x61e
qt_mt333!QWidget::QWidget+0xa9
qt_mt333!QDialog::QDialog+0x24

Is anyone aware of known issues in QFontInfo::exactMatch or QFont? Searching Trolltech's "Task Tracker" didn't turn up anything.

Thanks in advance!