Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTableView setindexwidget signal/slot capture
Forum Updated to NodeBB v4.3 + New Features

QTableView setindexwidget signal/slot capture

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 546 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    navap
    wrote on last edited by
    #1

    Hi All!
    I have added QComboBoxes for each of QTableView Columns using setindexwidget(). I have added my private slot function for currentIndexChanged() signal. But, when I try retrieving column using following code:

    int column = ui.tableView->currentIndex().column();

    it retrieves "-1"....
    Am I missing anything?
    Any help is greatly appreciated.

    Thanks in advance!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved