Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. why QlineEdit uneditable ?
Forum Update on Monday, May 27th 2025

why QlineEdit uneditable ?

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 2 Posters 271 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    guyoucaiwang
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Maybe you have set enabled property to false somewhere? I can't say much without the code...

      (Z(:^

      1 Reply Last reply
      2
      • G Offline
        G Offline
        guyoucaiwang
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved