Results 1 to 13 of 13

Thread: QThread communicate threadsafe

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2015
    Posts
    67

    Default Re: QThread communicate threadsafe

    "Well, you don't have that with the SIGNAL/SLOT macros either."

    I will get an compile error if the Slot does not exist that i type in with connect. With invokemethod i do not get an compile-error.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: QThread communicate threadsafe

    Quote Originally Posted by Ini View Post
    I will get an compile error if the Slot does not exist that i type in with connect.
    No, not with the SIGNAL and SLOT macros.

    That type of connect does runtime checking, not compile time checking.
    SIGNAL and SLOT convert their argument into a string, very similar to what you do manually when using invokeMethod.

    Cheers,
    _

Similar Threads

  1. Replies: 1
    Last Post: 4th October 2012, 15:49
  2. Replies: 5
    Last Post: 24th February 2012, 07:49
  3. Replies: 3
    Last Post: 20th September 2011, 21:13
  4. How to communicate between two forms
    By iamjayanth in forum Qt Programming
    Replies: 2
    Last Post: 7th April 2009, 09:17
  5. How to communicate between two different exe
    By Lele in forum Qt Programming
    Replies: 4
    Last Post: 9th July 2006, 14:02

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.