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