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. Viewable but non-editable tables
Forum Updated to NodeBB v4.3 + New Features

Viewable but non-editable tables

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

    Good evening,

    If I want to create a cosmetically appealing table for users to be able to view their data in (but NOT interact with the table) and potentially print...what would be the best QT object to use? I've been looking at QTableWidget and QTableView, but I don't see functionality to disable mouse events completely. This window needs to be view only.

    I was thinking I could possibly do it by re-implementing the event handler to do nothing regardless of what the mouse does over the window, but is that the best way?

    Thanks for any advice!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexander
      wrote on last edited by
      #2

      You can use Qt::ItemIsEditable, Qt::ItemIsEnabled flag for QTableWidgetItem

      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