Results 1 to 2 of 2

Thread: ‘postEvent’

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default ‘postEvent’

    Hi,

    I have a code in my program like this,

    void CVideoDevice::SendSignal(Signals s)
    {
    postEvent(this, new CVideoDeviceEvent(s));
    }

    but when i make this program, it display one error like this,

    error: ‘postEvent’ was not declared in this scope

    how can I solve this probs.
    Please help me

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: ‘postEvent’

    Qt Code:
    1. QCoreApplication::postEvent(/*..*/);
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    sabeesh (24th September 2007)

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.