Results 1 to 1 of 1

Thread: Q_RETURN_ARG and void problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Location
    Russia, Moscow
    Posts
    86
    Thanks
    2
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4

    Question Q_RETURN_ARG and void problem

    I want call slot after return to event loop like this:

    Qt Code:
    1. QMetaObject::invokeMethod(this, "filterChanged", Qt::QueuedConnection
    2. , Q_RETURN_ARG(void, 0)
    3. , Q_ARG(QString, regexp));
    To copy to clipboard, switch view to plain text mode 

    But Q_RETURN_ARG don't accept arguments.

    How to write a right?
    ---
    Sorry, i found how this work, just need remove return argument:

    Qt Code:
    1. QMetaObject::invokeMethod(this, "filterChanged", Qt::QueuedConnection
    2. , Q_ARG(QString, regexp));
    To copy to clipboard, switch view to plain text mode 
    Last edited by SABROG; 16th June 2009 at 12:23.

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.