Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

QGraphicsView question

$
0
0
I’m at the beginning stages of making a game and i have an issue with the QGraphicsView class. For some reason when i set the size of my QGraphicsScene, the view is never large enough to contain it without using scrollbars. You can understand i don’t want scrollbars in my game. I disabled the scrollbars but the size of the view still isn’t showing the whole scene. It’s missing like a good 100 pixels in both height and width. I tried scaling the view, and even though the size is now equal to the scene, the scene and all its items disappear. Scaling doesn’t seem to be the answer. Any way of correcting this? Thanks

Viewing all articles
Browse latest Browse all 13965

Trending Articles