[Qt-interest] Reducing the column header on a QTablewidget makes it to crash
srikanth bemineni
bemineni.srikanth at gmail.com
Tue Dec 7 23:51:59 CET 2010
I have a table widget. A cell at a particular row has a widget made up of
two more widgets (Label and a progressbar).
table cell
+————————-+
| widget |
++———————-++
+| Label |+
+|progress bar |+
++———————-++
+————————-+
when ever the I try to reduce the column width by dragging the table header
and it goes to almost 9 pixels or so the application crashes.
hpsum.exe!QWindowsStyle::drawControl) Line 2434 + 0xd bytes C++
hpsum.exe!QWindowsVistaStyle::drawControl() Line 886 C++
hpsum.exe!QStyleSheetStyle::drawControl() Line 4095 C++
hpsum.exe!QCommonStyle::drawControl() Line 1398 C++
hpsum.exe!QWindowsStyle::drawControl( 2561 C++
hpsum.exe!QStyleSheetStyle::drawControl) Line 3766 C++
hpsum.exe!QStylePainter::drawControl() Line 90 C++
hpsum.exe!QProgressBar::paintEvent() Line 397 C++
The crash happens at the QwindowsStyle::drawcontrol of the progress bar.
Increasing the column width is not crashing
I am using style sheets.
Is there a way where, I can set a minimum column width so that it cannot
reduce less than that ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101207/17a74b75/attachment.html
More information about the Qt-interest-old
mailing list