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:
@@ -104,6 +104,9 @@ class FormatTableMixin:
|
||||
# Set selection mode to no selection (since we're using checkboxes)
|
||||
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(
|
||||
"""
|
||||
QTableWidget {
|
||||
|
||||
Reference in New Issue
Block a user