Results 1 to 2 of 2

Thread: QObject's information

  1. #1
    Join Date
    Nov 2011
    Location
    Karlsruhe, Germany
    Posts
    57
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default QObject's information

    Hello all,

    I would like to insert some debug information for every QEvent.
    Therefore the QObject::notify() function was reimplemented.

    Some information like object class name, signal name, connected slot, etc. are constructed here.
    Since the program grows up, there would be mass of QEvents pass through, in which the information string built above
    made the performance worse.

    I wonder whether Qt has offered methods like a QObject Map in which developer can assign infomation to them. Then by traversing the map,
    the information string can be achieved.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QObject's information

    You can store dynamic properties on any QObject using QObject::setProperty()

    Cheers,
    _

Similar Threads

  1. Replies: 14
    Last Post: 27th November 2011, 14:13
  2. Qt Mobile Information
    By mlheese in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 20th December 2010, 22:49
  3. Optaining information from a DLL
    By srohit24 in forum Qt Programming
    Replies: 2
    Last Post: 14th February 2009, 05:58
  4. QT app information
    By CHeader in forum Qt Programming
    Replies: 5
    Last Post: 4th April 2008, 11:07
  5. Getting MAC Information from qt?
    By vishal.chauhan in forum Qt Programming
    Replies: 4
    Last Post: 23rd May 2007, 09:31

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.