should I reimplement resizecontents() ?
And is my code of drawcontents sufficient?
I also attaching my ImageView.
should I reimplement resizecontents() ?
And is my code of drawcontents sufficient?
I also attaching my ImageView.
Last edited by sumsin; 16th March 2006 at 14:03.
no need to reimplement it.
Just call the slot (not inside drawContents but somewhere before drawContents gets called).
I think the code inside drawContents will suffice.
why?Originally Posted by sumsin
what actually you want to do ?
a life without programming is like an empty bottle![]()
How about setting the image on a QLabel and placing the label inside the scroll view?
yes. So call resizeContents in function where you get your pixmap.but drawContents called automatically.
I actually want that at startup my widget opens in a default size and if the size of the image is larger than the size of viewport then it should show the scrollbars.
And when I resize the widget manually it should manage itself so that every time the image try to be in center.
Bookmarks