Results 1 to 4 of 4

Thread: Slot not being called when QFutureWatcher is finished

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Slot not being called when QFutureWatcher is finished

    Signal and slot signature does not match, you should get a warning message about connect statement - you cannot connect a signal with no parameters to a slot expecting a parameter, because what should be the parameter value inside the slot when signal is delivered ?
    This should work:
    Qt Code:
    1. connect(watcher,SIGNAL(finished()),this,SLOT(copyComplete()));
    2. // and change the slot:
    3. void ViewerMain::copyComplete()
    4. {
    5. qDebug("Copy complete fired!");
    6. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by stampede; 12th July 2011 at 20:04. Reason: removed not needed info

Similar Threads

  1. QFutureWatcher finished() signal not working
    By DiamonDogX in forum Qt Programming
    Replies: 13
    Last Post: 25th October 2011, 18:27
  2. Replies: 3
    Last Post: 7th April 2011, 11:09
  3. QProcess finished slot not firing
    By doggrant in forum Qt Programming
    Replies: 0
    Last Post: 10th November 2010, 13:09
  4. Slot gets called twice
    By greatgatsby in forum Newbie
    Replies: 7
    Last Post: 20th August 2009, 15:11
  5. SLOT not being called
    By steg90 in forum Qt Programming
    Replies: 4
    Last Post: 6th December 2007, 11:30

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.