You could also try calling this in your view constructor.
Qt Code:
To copy to clipboard, switch view to plain text mode
I don't know if it will have the effect you want, but you shouldn't need a resize event handler in that case.
You could also try calling this in your view constructor.
Qt Code:
To copy to clipboard, switch view to plain text mode
I don't know if it will have the effect you want, but you shouldn't need a resize event handler in that case.
That gives the same effect, I have removed the resizeEvent to use "setResizeAnchor( QGraphicsView::AnchorViewCenter );".
Thanks for the tip.
Bookmarks