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 ...




Reply With Quote
Bookmarks