Results 1 to 3 of 3

Thread: error: no matching function for call to ‘QTimer:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2012
    Posts
    136
    Thanks
    2
    Thanked 27 Times in 24 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: error: no matching function for call to ‘QTimer:

    If the class is not an QObject it is not possible to send the class as an argument to singleShot

    The slot may be a private slot thats not a problem but maybe try:
    QTimer::singleShot(3000, this, SLOT(DieselSwitchOff_2()));

    What version of Qt are you using
    Qt3 doesn't have the singleShot function (it uses timer->start(int,bool) the bool is for singleshot)
    Qt4 does have it
    Last edited by StrikeByte; 21st May 2012 at 15:53.

Similar Threads

  1. Replies: 1
    Last Post: 19th March 2011, 10:57
  2. about no matching function for call to
    By Alain Delon in forum General Programming
    Replies: 1
    Last Post: 5th March 2011, 21:30
  3. Replies: 1
    Last Post: 1st December 2010, 11:02
  4. no matching function for call to setupUi
    By ctote in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2010, 15:20
  5. No Matching function to call...
    By weepdoo in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2008, 17:30

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.