Unsolved why QlineEdit uneditable ?
-
Hello everyone
I recently used PyQT to edit my interface. The progress is fairly normal, but a difficult problem has occurred recently.
When I use LineEdit, TextEdit and other input widgets in the interface. Run the program to open the interface, I can't edit lineEdit, textEdit is the same.
I can get the focus, the mouse can click to get the focus, and I can see the frame when the focus is obtained, but I just can't input anything.
I tried replacing the input method to install fcix-qt5, but it didn't work.
I also did not set readOnly
Has anyone encountered this problem? Help
I use Ubuntu 18.04
And QT5 -
Maybe you have set
enabled
property tofalse
somewhere? I can't say much without the code... -
Thank you very much for your reply, I have solved the problem. I am using PyQT, and there is a problem when I use the def processing_key_event__() function. I did not authorize the specified widget when using the shortcut key processing function. It has been resolved so far. Thank you very much for your help and best wishes to you.
thanks