Results 1 to 2 of 2

Thread: Hasn't QTableWidget an "activated" signal?

  1. #1
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Hasn't QTableWidget an "activated" signal?

    Here is the code. ui.tableWidget is a pointer to a tableWidget and I've successfully added items to it. But the following doesn't work

    Qt Code:
    1. disconnect(ui.tableWidget,SIGNAL(activated(QModelIndex&)));
    2. connect(ui.tableWidget,SIGNAL(activated(QModelIndex&)),this,SLOT(tableKeyPressSLOT(QModelIndex&)));
    To copy to clipboard, switch view to plain text mode 

    I get

    Object::disconnect: No such signal QTableWidget::activated(QModelIndex&)
    Object::disconnect: (sender name: 'MainWindow')
    Object::disconnect: (receiver name: 'tableWidget')
    Object::connect: No such signal QTableWidget::activated(QModelIndex&)
    Object::connect: (sender name: 'tableWidget')
    Object::connect: (receiver name: 'MainWindow')

    If I read the manual correctly, activated is a signal in the QTableWidget class.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Hasn't QTableWidget an "activated" signal?

    Actually it's "activated(const QModelIndex&)".

Similar Threads

  1. Replies: 3
    Last Post: 8th September 2006, 18:54
  2. Replies: 2
    Last Post: 17th May 2006, 21:01
  3. Replies: 6
    Last Post: 5th March 2006, 21:05

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.