PDA

View Full Version : Custom widget + Qt Designer



chombium
12th April 2006, 21:24
Hi,

I 'm writing a custom widget.
I use QPainter for painting the widget. The painting style depends on some parameters, and it is defined as:

struct PaintParams
{
int PenWidth;
Qt::PenStyle pstyle;
QColor PenColor;
Qt::BrushStyle bstyle;
QColor BrushColor;
}

I want these params to appear in Qt Designer's Property Editor in the same way as font property.

How can this be done?
Should I define it as QObject instead struct?

GREETZ, chombium

jacek
12th April 2006, 21:33
You might try QDesignerPropertySheetExtension.