PDA

View Full Version : How do I use QEvent?



lni
2nd September 2011, 05:20
Hi,

I need to implement a display very similar to google earth.

I need to display a slice cut from a large 3D volume, when user moves the slice (say x slice) within the volume, I will display the data coarsely (re-sample coarsely) so it gives the user a "quick" feeling.

However, when user stops moving the slice, I will need to display the slice in original sample so user will see a good quality of display.

How do I schedule an event or a thread to handle this? Or how do I know user have stopped moving the slice?

I am using Qt 4.7.3.

Many thanks!

high_flyer
2nd September 2011, 10:37
Or how do I know user have stopped moving the slice?
How did you implement the slice movement in the first place?
What IS the slice?
Are you using an QGLWidget or GrphicsViewer or something else?

Creating a custom event is trivial, but you need to know when and from where to post it...