Results 1 to 6 of 6

Thread: Remove signal?

Threaded View

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

    Default Re: Remove signal?

    You can disconnect() the same way you connect().

    You can check the slot argument and return if it is not the one you want to handle in a given slot.

    You can connect to the QNetworkReply's finished() signal and only get your slot invoked when that particular request finished.

    You don't need global variables, just put the manager into a member of the class that has these methods or access the manager from the QNetworkReply object

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    ttimt (30th March 2015)

Similar Threads

  1. Replies: 1
    Last Post: 14th August 2014, 17:08
  2. Replies: 7
    Last Post: 20th March 2014, 07:43
  3. Replies: 6
    Last Post: 4th March 2014, 15:09
  4. How to connect signal to signal in QWidget correctly
    By Mint87 in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2013, 00:06
  5. Replies: 3
    Last Post: 2nd April 2011, 13:13

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.