Results 1 to 3 of 3

Thread: Warning: QObject::connect: Connecting from XXX to COMPAT slot (YYY)

  1. #1
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Warning: QObject::connect: Connecting from XXX to COMPAT slot (YYY)

    Qt Code:
    1. QObject::connect: Connecting from QGroupBox::toggled(bool) to COMPAT slot (QSlider::setShown(bool))
    To copy to clipboard, switch view to plain text mode 
    Do I need to worry about this warning? The connection works anyway, but I don't understand if i am doing something wrong or Qt is at fault here. I simply connected a QGroupBox's toggled(bool) with a child QWidget's setVisible(bool) in designer.

    Thanks

    BTW: I am using qt-win-opensource-src-4.3.4 with VC++
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Warning: QObject::connect: Connecting from XXX to COMPAT slot (YYY)

    Notice that it's warning about QWidget::setShown(), not about QWidget::setVisible(). QWidget::setShown() is a Qt3 support member so you should consider using QWidget::setVisible() instead...
    J-P Nurmi

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

    spud (24th March 2008)

  4. #3
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Warning: QObject::connect: Connecting from XXX to COMPAT slot (YYY)

    That simple, huh?

Similar Threads

  1. Visual Studio 2005 Express
    By Muzz in forum Installation and Deployment
    Replies: 22
    Last Post: 6th November 2008, 07:21
  2. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 20:41
  3. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 15:18
  4. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 22:41
  5. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 06:23

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.