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. [Solved] QTableView in QGroupBox: Mouse ignored for the table view?

[Solved] QTableView in QGroupBox: Mouse ignored for the table view?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.7k 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.
  • W Offline
    W Offline
    wjlrkjjv
    wrote on last edited by
    #1

    Hi!

    With the Designer I created a QGroupBox and put a QTableView on it. The Problem with the running program is that QTableView doesn't react on the mouse! It only takes keyboard input... why does it happen and how to fix it?
    There's no problem without the group box, but I want to use it... (Theres also no problem with other controls in the group box, like a plain text edit...)

    Thanks!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      This setup should work. Can you provide us the source code for a

      • short
      • complete
      • compilable
      • running

      program that demonstrates the error.

      Please no full source code of your actual project, boil it down to a demo program that only shows the erratic behavior.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wjlrkjjv
        wrote on last edited by
        #3

        //EDIT: "I thought that I was just missing something trivial..."

        Yes, very trivial...
        The hierarchy was incorrect. QTableView was not a child of QGroupBox. I don't know how I messed this up.

        Problem solved.

        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