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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:03:54+00:00 2026-05-30T01:03:54+00:00

I am using QTableView and I want to hide mouse pointer on table cells

  • 0

I am using QTableView and I want to hide mouse pointer on table cells and mouse pointer should be visible on header and scrollbar, and for that I am using mouseEnter and mouseLeave event and mouse movement to show/hide mouse pointer.

But the problem is while moving mouse pointer from table data cells to outside the table, when mouse pointer reaches the scrollbar, it is not visible as I am not getting mouseLeave event on table while mouse pointer is on scrollbar and also that time no mouse move event in QTableView.

Can anyone please help to achieve mouse pointer hiding on table cells only and should be visible on header and on scrollbar?

  • 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-30T01:03:55+00:00Added an answer on May 30, 2026 at 1:03 am

    QTableView is a compound widget, it inherits from QAbstractScrollArea which has a QScrollBar widget in it. All you need is to subclass QScrollBar and reimplement mouseEnter and mouseLeave for it, as you’ve done for QTableView.
    After that you call this:
    QTableView::setVerticalScrollBar ( QScrollBar * scrollBar );

    e.g.

    class MyScroll : public QScrollBar {
    // ...
    }
    
    my_table_view->setVerticalScrollBar( new MyScroll(my_table_view) );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using TortoiseSVN against VisualSVN I delete a source file that I should not have
i'm using a default style table ( UITableViewCellStyleSubtitle ) i want to add more
I want to make a link using label in every cell of table. When
I'm trying to make a simple tabular data layout using a QTableView with a
I have a Tableview on AppDelegate That calls a SecondView (dvController) when DidSelectRowAtIndexPath using:
Using ASP.NET MVC there are situations (such as form submission) that may require a
I have few custom controls (image views) added programmatically to table cell. I want
I'm using QTableView and QStandardItemModel to show some data. For each row, there is
I have a custom data structure that I want to display in a PyQt
I want to use a QGraphicWebView inside a delegate to render a QTableView cell,

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.