This is so very very wrong :-)
Qt Code:
ui->view->setScene(&scene); ui->view->show();To copy to clipboard, switch view to plain text mode
Among other lines, this will at least put your paint event in an infinite loop.
And from what it looks like, you don't even need to use the paint event of your dialog.
Why use a graphics view and start painting yourself?
The only thing and nothing else you should be doing in the paint event is painting.
Bookmarks