Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.0
-
None
-
Windows10 22H2
-
-
70096b2bb (dev), 24f6eaa11 (6.7), c535fcc59 (6.6)
Description
A readonly QLineEdit is still writable using input method. See attached screenshot.
To reproduce:
# CMakeLists.txt
cmake_minimum_required(VERSION 3.14)
project(lineEditReadOnlyInputMethodBug)
find_package(Qt6 REQUIRED COMPONENTS Widgets)
qt_add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Widgets)
// main.cpp #include <QApplication> #include <QLineEdit> int main(int argc, char **argv){ QApplication a{argc, argv}; QLineEdit le; le.setPlaceholderText("A readonly QLineEdit"); le.setReadOnly(true); le.show(); return a.exec(); }
Click mouse on the QLineEdit. Input texts when system input method is enabled.
Attachments
Issue Links
- relates to
-
QTBUG-105009 [REG 5.15.2->6.3.1/6.4.0 Beta2] You can still insert Chinese text into a QTextEdit when "readOnly" property is enabled.
- Closed
For Gerrit Dashboard: QTBUG-119182 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
544641,1 | Implement Qt::ImEnabled by isEnabled() and isReadOnly() | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: NEW | +2 | 0 |
542900,2 | QWidget: check WA_InputMethodEnabled in handling IM queries in Windows | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |
543188,9 | Implement Qt::ImEnabled by isEnabled() and isReadOnly() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
544341,2 | Implement Qt::ImEnabled by isEnabled() and isReadOnly() | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
544429,2 | Implement Qt::ImEnabled by isEnabled() and isReadOnly() | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |