Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6779057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:20:22+00:00 2026-05-26T16:20:22+00:00

I want a signal to be emitted when I either click on a cell

  • 0

I want a signal to be emitted when I either click on a cell or use the arrow keys to navigate to a new cell of a QTableView. When I was using a QTableWidget, I used the currentCellChanged signals. However, I don’t see a similar signal in QTableView – is there nothing similar?

Thanks,

David

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:20:23+00:00Added an answer on May 26, 2026 at 4:20 pm

    You can either use:

    • the signal currentChanged(QModelIndex, QModelIndex) of the QItemSelectionModel instance returned by QAbstractItemView::selectionModel(), or
    • derive the view and redefine the function QAbstractItemView::currentChanged(QModelIndex, QModelIndex).

    PS: When the parameter is a const reference (so not const alone, or not & alone), you can omit both const and & in the SIGNAL and SLOT macros:

    connect(tableView->selectionModel(), 
            SIGNAL(currentChanged(QModelIndex, QModelIndex)), 
            ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use a generator as the argument passed by a PyQt4 signal,
I'm designing a declarative language for defining signal networks. I want to use variable
I want to use eventfd as a way to signal simple events between kernelspace
I've noticed that QML can receive a signal emitted from Python by using the
Want to use signal when follow() function called in UserProfile. I've written signal which
I want to specify a signal handler in Perl, but using the number, not
Want to trigger itemClicked event for a QTreeWidget Item using the following code. connect(aTreeWidget,SIGNAL(itemClicked(QTreeWidgetItem*,int)),this,SLOT(CallM(QTreeWidgetItem*
I use signal(SIGINT,my_handler) to point SIGINT to my_handler . After some time I want
I want to use signal and slot in my program and for this I
I want to know the signal strength of my current cell tower on Android.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.