Results 1 to 2 of 2

Thread: How do I use QEvent?

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How do I use QEvent?

    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!

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How do I use QEvent?

    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...
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. How to filter QEvent::MetaCall
    By gilamran in forum Newbie
    Replies: 0
    Last Post: 4th January 2011, 18:59
  2. QEvent memory management
    By staser12 in forum Qt Programming
    Replies: 2
    Last Post: 24th August 2010, 08:41
  3. QEvent problem
    By batileon in forum Qt Programming
    Replies: 3
    Last Post: 4th May 2009, 12:23
  4. qevent problem
    By amulya in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2006, 11:51
  5. QEvent::Enter
    By incapacitant in forum Newbie
    Replies: 6
    Last Post: 22nd March 2006, 08:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.