Results 1 to 20 of 21

Thread: qRegisterMetaType- reference as argument in connect throwing run time error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qRegisterMetaType- reference as argument in connect throwing run time error

    Quote Originally Posted by anda_skoa View Post
    Reference arguments cannot be used with queued connection.

    After all a queued connection transports the arguments via copying them into an event and sending the event to the receiver object.

    Cheers,
    _

    Changing my connect function to Qt:irectConnection worked out, I hope it will not create any problem as this is going to start my thread.


    Added after 4 minutes:


    Quote Originally Posted by d_stranz View Post
    QMetaType and qRegisterMetaTypeStreamOperators():
    My new data type is just typedefed one
    typedef std::vector< std::vector<int> > myData;
    , Sorry but I did not get how implementing this operators related to my problem.
    Last edited by prasad_N; 29th December 2015 at 18:36.
    Thanks :-)

Similar Threads

  1. Replies: 0
    Last Post: 19th January 2012, 15:52
  2. Replies: 2
    Last Post: 9th May 2011, 10:38
  3. Replies: 6
    Last Post: 9th April 2011, 19:23
  4. qRegisterMetaType - problems with connect()
    By Macok in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2009, 22:55
  5. Replies: 2
    Last Post: 8th October 2007, 15:02

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
  •  
Qt is a trademark of The Qt Company.