Results 1 to 2 of 2

Thread: Is it OK to use qt_register_signal_spy_callbacks?

  1. #1
    Join Date
    Sep 2008
    Posts
    9
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Is it OK to use qt_register_signal_spy_callbacks?

    The function qt_register_signal_spy_callbacks will register functions that will be called before / after each signal emission, and before / after each slot call. Although TrollTech does not document this function. it appears that some test utilities use this function. It appears that this function is in a gray area: it is not documented, but it cannot be removed without impacting test software. This makes me wonder: is it safe to use the qt_register_signal_spy_callbacks function? Or should this be regarded as an implementation detail that can go away at any time?

  2. #2
    Join Date
    May 2006
    Location
    Germany
    Posts
    108
    Thanks
    2
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is it OK to use qt_register_signal_spy_callbacks?

    If it is not documented, then it is to be used at your own risk - the function may change or disappear in future versions of Qt. I guess the test tool manufacturers are well aware that they might have to change their software in the future if this function should be dropped from Qt.
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

  3. The following user says thank you to Methedrine for this useful post:

    Frank J. Lhota (14th October 2008)

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.