Did you call the paintEvent, you need that to paint somthing on the widget. If you just write code like paintXXX and not call in the paintEvent, it`ll not work at all.Qt Code:
{ To copy to clipboard, switch view to plain text mode
Did you call the paintEvent, you need that to paint somthing on the widget. If you just write code like paintXXX and not call in the paintEvent, it`ll not work at all.Qt Code:
{ To copy to clipboard, switch view to plain text mode
actually its a bug in Qt ... we cant add a new widget to a widget that is embedded to graphicsView()=xtfllbl;109807]Did you call the paintEvent, you need that to paint somthing on the widget. If you just write code like paintXXX and not call in the paintEvent, it`ll not work at all.
see this code
Qt Code:
{ group->setScene(scene); group2->setScene(scene2); group->scene()->addWidget(group2); group2->scene()->addWidget(lineEdit); // this one crashing * l->addWidget(group); setLayout( l ); }To copy to clipboard, switch view to plain text mode
the group2 is try to embed another widget where group2 itself is embedded by group ...
Last edited by wagmare; 17th July 2009 at 10:40.
"Behind every great fortune lies a crime" - Balzac
Bookmarks