Yes, your code works for me too. It seems that I've found a reason for my problem: I've created a widget from QGraphicsView-derived class constructor and viewport was created after it and after raise() call - so my widget was simply covered by viewport. Sorry for disturbing you.
Bookmarks