Santosh Reddy, thank you for replying.
When I minimize the window & enlarge, the white space is removed, the board becomes normal again.
I placed the frame as the first element in the scene.
Santosh Reddy, thank you for replying.
When I minimize the window & enlarge, the white space is removed, the board becomes normal again.
I placed the frame as the first element in the scene.
It makes me think there is some problem with either boundingRect() or with paint()
Try with this version of drawImage()
source rect will be the bounding rectQt Code:
To copy to clipboard, switch view to plain text mode
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
AtlasS (27th January 2013)
Thank you very much. I will try this function once I'm done with scanning the code again for missing things.
I'm very sorry but I have another question : my program was initially 13 MB, now its size has increased to 14.8 MB, is that too much for a chess game ?
I mean in your experience : do you think such application can be built with lesser size ? (using the same quality & extensions of images I used here ?? )
and if I used Qt's native painting functions to paint my chess elements, would it be lesser in size ?
Extensions used : PNG.
Quality : 100% (photoshop)
Are you embedding images as resources in the exe file, if so check there size too
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
AtlasS (28th January 2013)
Bookmarks