Results 1 to 1 of 1

Thread: Q_RETURN_ARG and void problem

  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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.