Results 1 to 5 of 5

Thread: [Signal/Slot][QObject::dumpObjectInfo] Porblem

  1. #1
    Join Date
    Jul 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default [Signal/Slot][QObject::dumpObjectInfo] Porblem

    Hi folks!!! I have trouble writing an application, so I want to check signals, and slots of one object that inherits from QObject. To do that I'm trying to use dumpObjectInfo();, but I can't get it working. In my *.pro file I've added CONFIG+=debug. I also use qDebug(Q_FUNC_INFO) ; and that works.
    Also I have a second problem:
    My slot doesn't get call when a signal is triggered, but the connect:...) returns true (so signal and slot are connected). My Qt ver. is 4.4.3 OS of my choice is Debian Lenny. Any hints?

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: [Signal/Slot][QObject::dumpObjectInfo] Porblem

    Quote Originally Posted by xkazielx View Post
    Hi folks!!! I have trouble writing an application, so I want to check signals, and slots of one object that inherits from QObject. To do that I'm trying to use dumpObjectInfo();, but I can't get it working. In my *.pro file I've added CONFIG+=debug. I also use qDebug(Q_FUNC_INFO) ; and that works.
    may be clean and rebuild the project will help?


    Also I have a second problem:
    My slot doesn't get call when a signal is triggered, but the connect:...) returns true (so signal and slot are connected). My Qt ver. is 4.4.3 OS of my choice is Debian Lenny. Any hints?
    how do you know that your signal is triggered?

  3. #3
    Join Date
    Jul 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [Signal/Slot][QObject::dumpObjectInfo] Porblem

    Quote Originally Posted by MrDeath View Post
    how do you know that your signal is triggered?
    I have:
    qDebug()<<"Some tekst";
    emit signal(..);
    qDebug()<<"Next tekst";

    And I can see output in console, and while compiling I don't have any error messages.
    I've already done
    make clean
    make

  4. #4
    Join Date
    Jul 2009
    Posts
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: [Signal/Slot][QObject::dumpObjectInfo] Porblem

    Are you doing this on Windows? If so, try to add

    Qt Code:
    1. CONFIG += console
    To copy to clipboard, switch view to plain text mode 

    to your pro file.

  5. #5
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: [Signal/Slot][QObject::dumpObjectInfo] Porblem

    make some dummy slots which display a messagebox and connect it to this signal.. can we see the class code?

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.