For example, if I'm drawing a self-defined class which inherits Q3CheckTableItem, what should I do?
Like this?
qso->state = flags;
qso
->rect
= QRect( 0,
( cr.
height() - sz.
height() ) / 2, sz.
width(), sz.
height() );
(table
()->style
())->drawPrimitive
( QStyle::PE_IndicatorCheckBox, qso, p
);
QStyleOption* qso = new QStyleOption();
qso->state = flags;
qso->rect = QRect( 0, ( cr.height() - sz.height() ) / 2, sz.width(), sz.height() );
(table()->style())->drawPrimitive( QStyle::PE_IndicatorCheckBox, qso, p );
To copy to clipboard, switch view to plain text mode
What should I deal with the initFrom?
like this?(the code is in the self defined class)
qso->initFrom((QWidget *) this );
To copy to clipboard, switch view to plain text mode
I tried this but this lead to segmentation fault.........
Bookmarks