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. When disabling QLineEdit the text in the field is very dull.
Forum Update on Monday, May 27th 2025

When disabling QLineEdit the text in the field is very dull.

Scheduled Pinned Locked Moved Unsolved Qt for Python
pyside
2 Posts 2 Posters 351 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.
  • K Offline
    K Offline
    kumar80
    wrote on last edited by
    #1

    Create an app to run on Ubuntu. When I disable QLineEdit the text in the field is very dull. Can we do some more modification to make is more visible. Is it possible to make it disable but still remain white?
    bb31b5c3-5af4-43eb-8005-edd9b1f5a945-image.png

    JonBJ 1 Reply Last reply
    0
    • K kumar80

      Create an app to run on Ubuntu. When I disable QLineEdit the text in the field is very dull. Can we do some more modification to make is more visible. Is it possible to make it disable but still remain white?
      bb31b5c3-5af4-43eb-8005-edd9b1f5a945-image.png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @kumar80 said in When disabling QLineEdit the text in the field is very dull.:

      Is it possible to make it disable but still remain white?

      Try making it read-only instead of disabled. IIRC that retains the white background. I often do that as my "disabled style".

      Otherwise I imagine you can change it for disabled via a stylesheet.

      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