View Full Version : Custom widget + Qt Designer

12th April 2006, 20:24

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

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