Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Viewable but non-editable tables
mchris357 last edited by
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!
alexander last edited by
You can use Qt::ItemIsEditable, Qt::ItemIsEnabled flag for QTableWidgetItem