Results 1 to 10 of 10

Thread: slot no work in another class

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default slot no work in another class

    I haven't errors but when i build programm, debug write QObject::connect no such slots Myclass ::MyVoid().
    what is it?
    Thank's for answers!

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: slot no work in another class

    Show us some code

    My guess is that you either made some mistake when called connect.
    or is void MyVoid() declared as public slots: in the definition of Myclass?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: slot no work in another class

    Also make sure your class has the Q_OBJECT macro and qmake is called after adding it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 5
    Last Post: 14th September 2010, 21:13
  2. Slot doesn't seem to work
    By waynew in forum Newbie
    Replies: 3
    Last Post: 10th November 2009, 09:54
  3. minimize slot does not work in linux.Is it a Bug in Qt?
    By anupamgee in forum Qt Programming
    Replies: 4
    Last Post: 4th June 2009, 08:18
  4. Replies: 12
    Last Post: 18th September 2008, 15:04
  5. Signal/slot looking in base class, not derived class
    By georgie in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2006, 07:36

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.