Results 1 to 5 of 5

Thread: Creating event manually and using them

  1. #1
    Join Date
    Dec 2008
    Location
    PUNE (INDIA)
    Posts
    49
    Thanks
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Creating event manually and using them

    Hi all Experts ,
    Can somebody send me the example or a link for creating the events manually and using them ?
    Thanks & Regards ,

    Vajindar Laddad .
    Trainee Developer.
    (INDIA).
    91+9325014248

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Creating event manually and using them

    you forgot to mention the postal address so that we can mail you the printed copy of the code.

  3. #3
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creating event manually and using them

    Read about QEvent
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  4. #4
    Join Date
    Dec 2008
    Location
    PUNE (INDIA)
    Posts
    49
    Thanks
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creating event manually and using them

    Hello Sir ,
    Just need examples to explore the Events , I don't want a hard copy .
    I was searching for the examples, where we create a Event object and use it .
    But unfortunately i didn't find .
    Thanks & Regards ,

    Vajindar Laddad .
    Trainee Developer.
    (INDIA).
    91+9325014248

  5. #5
    Join Date
    Feb 2008
    Posts
    98
    Thanks
    2
    Thanked 24 Times in 24 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creating event manually and using them

    Take a look at QCoreApplication::postEvent().

    For example:

    Qt Code:
    1. QLineEdit *lineEdit = new QLineEdit(this);
    2.  
    3. QKeyEvent *event = new QKeyEvent(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier);
    4. qApp->postEvent(lineEdit, event);
    To copy to clipboard, switch view to plain text mode 

    Search in this forum and you will find more examples.

  6. The following user says thank you to victor.fernandez for this useful post:

    vajindarladdad (31st August 2009)

Tags for this Thread

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.