PDA

View Full Version : How use QPainter



avis_phoenix
30th May 2006, 22: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, 22:35
See the widgets/scribble example that comes with Qt.

avis_phoenix
2nd June 2006, 15: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, 16:02
It depend on what do you mean by "big", but you might try QScrollArea.