ios and QTableWidget shows keyboard
-
Qt 6.11.1, osx 15.7.7, xcode 26.3, ios 26.3 (simulator and physical).
Clicking on a QTableWidget on IOS shows the keyboard.
The same code on Linux, OSX, Android does NOT show keyboard.Before you say "QTableWidget is not designed for mobile" it does works great on Android for showing tabular data and its easy to scroll in with finger. In ios it works equally well except for that it forces the keyboard to open.
I set:
setMouseTracking(true);
setTabletTracking(true);
setTabKeyNavigation(false);
setSelectionBehavior(QAbstractItemView::SelectRows);
setSelectionMode(QAbstractItemView::SingleSelection);
setEditTriggers(QAbstractItemView::NoEditTriggers);Is this a bug or are there any more settings/workaround I need?
/Martin
-
Given the edit triggers, I'd consider this a bug, possibly in the iOS QPA plugin's handling of micro-focus changes or input-method hints. Report welcome: https://wiki.qt.io/Reporting_Bugs
-
Reported: QTBUG-147229
A sort of workaround is to take away autoDefault for all pushbuttons on the form. Then the ready button on the ios keyboard works like show/hide since there are no default button for the form. Though the keyboard still shows up when the QTableWidget gets active.