View Full Version : How use QPainter
avis_phoenix
30th May 2006, 21:23
Hello, I want to know How I can create a window like a "sheet of paper" to paint? I understand that the "sheet of paper" is making with QPainter but how I define the size of my sheet of paper? and How I can indicate from external functions of the class of window that I want to paint something? :confused:
jacek
30th May 2006, 21:35
See the widgets/scribble example that comes with Qt.
avis_phoenix
2nd June 2006, 14:30
Ok i see this example but if you open a small image don`t change the size of window or workspace (sheet of paper), and if you opne a big image neither change the window's size, then how i can put scroll bar to view a big image or "sheet of papel"?
:crying:
jacek
2nd June 2006, 15:02
It depend on what do you mean by "big", but you might try QScrollArea.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.