Disable editing in format table
Set the format table's edit triggers to NoEditTriggers to prevent cell editing and avoid selection box on double-click.
This commit is contained in:
@@ -103,6 +103,9 @@ class FormatTableMixin:
|
|||||||
|
|
||||||
# Set selection mode to no selection (since we're using checkboxes)
|
# Set selection mode to no selection (since we're using checkboxes)
|
||||||
self.format_table.setSelectionMode(QTableWidget.SelectionMode.NoSelection)
|
self.format_table.setSelectionMode(QTableWidget.SelectionMode.NoSelection)
|
||||||
|
|
||||||
|
# Disable editing to prevent the selection box on double-click
|
||||||
|
self.format_table.setEditTriggers(QTableWidget.EditTrigger.NoEditTriggers)
|
||||||
|
|
||||||
self.format_table.setStyleSheet(
|
self.format_table.setStyleSheet(
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user