Results 1 to 11 of 11

Thread: No Such Slot

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: No Such Slot

    ars already explained the situation and its solutions but just to be more precise: your error message are actually two error messages.

    The first line is from the "connected by name" feature and complains that there is no signal with the name "valuechanged" on object sizeslider, because it only has "valueChanged" (capitalization error).

    The second and third line are from the connect() statement, since you had "int value" in your SLOT macro, but it only expects argument types, so just "int".

    And of course I also fully agree with ars' assessment regarding using "connect by name". I.e. I would also always use and recommend explicit connect.

    Cheers,
    _

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

    k3ro (22nd February 2016)

Similar Threads

  1. No Such Slot
    By Geoffry31 in forum Newbie
    Replies: 9
    Last Post: 13th November 2012, 22:07
  2. Replies: 8
    Last Post: 7th November 2012, 14:10
  3. Replies: 2
    Last Post: 26th August 2011, 08:51
  4. Slot
    By mickey in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2006, 18:51
  5. signal slot conection using a string, not a SLOT
    By rianquinn in forum Qt Programming
    Replies: 6
    Last Post: 5th February 2006, 18:52

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.