Results 1 to 3 of 3

Thread: Inheritance and signal

  1. #1
    Join Date
    Jan 2006
    Location
    Rzeszow, POLAND
    Posts
    20
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Inheritance and signal

    I've got problem with connecting any signal from my class (it inherits from qtreewidget). I've found similar problem in this thread:
    http://www.qtcentre.org/forum/f-qt-p...ignal-338.html
    but I still can't solve the problem. I always get message:
    Qt Code:
    1. Object::connect: No such signal Zespoly::itemClicked(QTreeWidgetItem*item,int)
    To copy to clipboard, switch view to plain text mode 

  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: Inheritance and signal

    You must not put any parameter names but only types into connect() statement.

    Qt Code:
    1. connect(sender, SIGNAL(itemClicked(QTreeWidgetItem*, int)), receiver, SLOT(...));
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Rzeszow, POLAND
    Posts
    20
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Inheritance and signal

    OMG
    It was late when I had this problem - I was definitely too tired. Thanks

Similar Threads

  1. Multiple inheritance & Qt
    By dublet in forum Qt Programming
    Replies: 11
    Last Post: 8th March 2006, 09:12

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.