Results 1 to 3 of 3

Thread: how to get a class's signal list?

  1. #1
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to get a class's signal list?

    I have no access to the class src/h code,also I don't know which class the class drived from ,there is only a instance of an class ,how can I get the class's signal list ?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to get a class's signal list?

    If you have a QObject then you can access that information via the QMetaObject.
    QObject::staticMetaObject() and QObject::metaObject()

  3. #3
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to get a class's signal list?

    Quote Originally Posted by ChrisW67 View Post
    If you have a QObject then you can access that information via the QMetaObject.
    QObject::staticMetaObject() and QObject::metaObject()
    Thanks ,I will have a try.

Similar Threads

  1. List-based class container for Gui?
    By naturalpsychic in forum Qt Programming
    Replies: 10
    Last Post: 29th January 2011, 12:59
  2. class list
    By okanakyuz in forum Qt Tools
    Replies: 1
    Last Post: 17th December 2009, 08:51
  3. Replies: 12
    Last Post: 18th September 2008, 15:04
  4. 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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.