Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Default boarder colour

Default boarder colour

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 269 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.
  • B Offline
    B Offline
    Buller
    wrote on last edited by
    #1

    I am dynamically changing the boarder colour of a QLineEdit, thus:
    setStyleSheet("border-style: outset; border-width: 2px; border-color: green;");
    But I have not found away to restore it to the original colour. I have tried things such as
    setstyle: outset; border-width: 1px; border-color: Qt::default;");
    but that cannot be parsed:
    Could not parse stylesheet of object 0x55ad1162fd60
    Since Qt::default that is not accepted, what should it be? I can fiddle it by setting a specific colour, but that's a rather ugly hack, that I fear could lead to problems some time in the future.

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Buller said in Default boarder colour:

      Since Qt::default that is not accepted, what should it be?

      Simply nothing

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      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