text inside QGraphicsEllipseItem
Hello,
I create circles(or discs) on QGraphicsScene using QGraphicsEllipseItem. Now what I need is to number these circles. How can I use QPaint to drawtext on a QGraphicsEllipseItem ?? or is there any better way to number the circles ??
I am using Qt 4.4
Re: text inside QGraphicsEllipseItem
Subclass QGraphicsEllipseItem and make it draw a numbered circle.
Re: text inside QGraphicsEllipseItem
Thanks Jacek,
I am quite new to Qt. Can you point me an example for subclassing ?
Re: text inside QGraphicsEllipseItem
Code:
{
public:
{
painter->drawText() // Draw you text
}
};
Hope this helps