Results 1 to 8 of 8

Thread: Dynamically adding tabs

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Dynamically adding tabs

    Quote Originally Posted by larry104
    Correcting the connect() syntax to
    QObject::connect(dynTab->tableView, SIGNAL(doubleClicked(QModelIndex &)),this, SLOT(myTableView_doubleClicked(QModelIndex &)));
    gives me the same error:
    Object::connect: No such signal MyTableView::doubleClicked(QModelIndex&)

    Strange? Anything else I might miss?
    should be "doubleClicked(const QModelIndex &)", note the "const" keyword. In both signal and slot.

  2. The following user says thank you to wysota for this useful post:

    larry104 (26th July 2006)

Similar Threads

  1. Removing Tabs
    By NewGuy in forum Qt Programming
    Replies: 6
    Last Post: 22nd July 2006, 23:46

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
  •  
Qt is a trademark of The Qt Company.