I've been reading the Docs and searching for examples on QGraphicsWidget. I've been doing my project with QGraphicsItem, but now I found out only QGraphicsWidget has a layout. Now I want to use all the QGraphicsWidget functionality.
But I really cant understand how it works. Do I add a QGraphicsItem to it, or can I directly add a QPixmap?
It says
QGraphicsWidget
::QGraphicsWidget ( QGraphicsItem * parent
= 0, Qt
::WindowFlags wFlags
= 0 )"The optional parent argument is passed to QGraphicsItem's constructor."
QGraphicsWidget::QGraphicsWidget ( QGraphicsItem * parent = 0, Qt::WindowFlags wFlags = 0 )
"The optional parent argument is passed to QGraphicsItem's constructor."
To copy to clipboard, switch view to plain text mode
What does that mean? That to each QGraphicsItem I have I need to create a new QGraphicsWidget for it?
Thats it. If anyone can help me "see the light", I am most grateful.
Bookmarks