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 6355395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:45:25+00:00 2026-05-24T22:45:25+00:00

In my application, I have one tableview of items, and a side-panel preview:ing the

  • 0

In my application, I have one tableview of items, and a side-panel “preview”:ing the latest selected item.

I want clicking on an item to change the selection, and double-clicking to cause a “run”-action to be performed. More specifically, I want the “run”-action (including key-navigation and pressing enter) to be bound to the “activation” of the item in the table-row.

My problem is; single-clicks does not only change the selection, but fires the “activated” signal on the item. I would like to tweak it such that:

Navigation Keys, Single Mouse Click: Selection-change, update preview-panel
Enter Key, Double Mouse Click: Activate/run/open action triggered.

Is there a nice clean way to do it, or are overriding the onclick/doubleclick events my best option? Or is there some other tabular list-widget better suiting my needs?

  • 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-24T22:45:25+00:00Added an answer on May 24, 2026 at 10:45 pm

    I would connect the slot for the preview action to the currentChanged() signal of the table view’s selectionModel(). This covers single clicks and key navigation.

    Then there’s two options for the double clicks and Enter key presses:

    1. Subclass your tableview, override doubleClickEvent() and keyPressEvent() and fire your custom signal in there, with maybe the model index or something else as an argument. Then just connect your run method to your own signal as you have full control over when it is fired.
    2. If you don’t want to subclass, you can use the installEventFilter() mechanism.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple application with two views, one is a TableView and the
I have one question; In my ASP.NET MVC web application have to do certain
I have Application written with GWT 1.7. I have one page where I upload
I won't create wallpaper-application but have one problem. Please tell me how add ImageView
How to copy or duplicate gtk widgets? In my application I have one huge
I have one application which uses the standard .NET forms authentication cookie, now I
I have one application that prints messages from Test.exe in console .My java program
i have one application which is build using VB.NET now i required to add
I have an application which may only have one instance of itself open at
I have WPF Application where I have One main form and other user controls

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.