[Qt-interest] adding another item in QGraphicsItem
chandrasekar wagmare
sekarwagmare at gmail.com
Sat Apr 25 08:47:44 CEST 2009
hi friends,
i am designing a QGraphicsView having several customized
QGraphicsRectItem ...
one of the customized item is ProgressItem
ProgressItem::ProgressItem(const QRectF &rect)
: QGraphicsRectItem(rect)
i will construct it in QGraphicsScene with QRectF(0, 0, 80, 40)
my doubt is ..." how can i insert a QGraphicsTextItem inside the
QGraphicsRectItem ...
previously i use :paint(QPainter *painter, const QStyleOptionGraphicsItem
*o, QWidget *widget)
and use painter->addText();
but i dont know how to introduce an new item (QGraphicsTextItem) inside the
rectItem() ...
can anybody please help me .....
--
CHANDRU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090425/02d5476a/attachment.html
More information about the Qt-interest-old
mailing list