Results 1 to 2 of 2

Thread: how to use qevent?

  1. #1
    Join Date
    Nov 2011
    Location
    Karlsruhe, Germany
    Posts
    57
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Smile how to use qevent?

    recently learning how to use qtevent.

    I have defined an event which i use to compare some variable.

    I have defined this event class in myevent.h

    but don't know how to use it. i think signal and slot is more understandable for me.

    I want every time when a variable is changed, this compare event will be sent and be received by my plugin. So i can do further steps.

    can anyone just give me some example how to implement it? thank you all.

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to use qevent?

    this, this and this (custom event types in the middle) should help you.

    Cheers!

Similar Threads

  1. How do I use QEvent?
    By lni in forum Qt Programming
    Replies: 1
    Last Post: 2nd September 2011, 10:37
  2. QEvent problem
    By batileon in forum Qt Programming
    Replies: 3
    Last Post: 4th May 2009, 12:23
  3. QEvent for QGraphicsView scrollbars?
    By forrestfsu in forum Qt Programming
    Replies: 9
    Last Post: 2nd December 2006, 07:42
  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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.