PDA

View Full Version : graphics view painting



dognzhe
12th May 2009, 01:59
does any one know that when the veiwport get painted? it is not get paint straight way of i call setpos(). so when? is there any way that i could let it get paint when i want.

aamer4yu
12th May 2009, 05:29
What are you using setPos on ?
You need to add item to scene, and set scene on a view..
How are you doing your code ?

dognzhe
12th May 2009, 06:56
What are you using setPos on ?
You need to add item to scene, and set scene on a view..
How are you doing your code ?


yes , i know it, my view and scene works fine, but i want to know when does the viewport get painted? after re enter event loop? or is there way i could take control of when to paint.

wysota
12th May 2009, 07:26
after re enter event loop?
Yes, exactly like any other widget.


or is there way i could take control of when to paint.
Not really. You can only control what gets painted.