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. how to stylesheet delete?

how to stylesheet delete?

Scheduled Pinned Locked Moved Solved General and Desktop
stylesheetdelete
5 Posts 3 Posters 2.7k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    ForestPoem
    wrote on last edited by
    #1

    Hi.

    i set stylesheet in line edit .

    my source code ↓

    ui->lineEdit->setStyleSheet("QLineEdit {border-color:orange;border-width:2;border-style:outset}");

    i want delete stylesheet.

    how to stylesheet delete?

    RatzzR 1 Reply Last reply
    0
    • F ForestPoem

      Hi.

      i set stylesheet in line edit .

      my source code ↓

      ui->lineEdit->setStyleSheet("QLineEdit {border-color:orange;border-width:2;border-style:outset}");

      i want delete stylesheet.

      how to stylesheet delete?

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @ForestPoem
      ui->lineEdit->setStyleSheet("");

      --Alles ist gut.

      F 1 Reply Last reply
      1
      • RatzzR Ratzz

        @ForestPoem
        ui->lineEdit->setStyleSheet("");

        F Offline
        F Offline
        ForestPoem
        wrote on last edited by
        #3

        @Ratzz

        thank you .

        solved.

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Just a hint: don't create empty QStrings by conversion from "". It's better to use the default constructor:

          ui->lineEdit->setStyleSheet(QString());
          
          F 1 Reply Last reply
          0
          • Chris KawaC Chris Kawa

            Just a hint: don't create empty QStrings by conversion from "". It's better to use the default constructor:

            ui->lineEdit->setStyleSheet(QString());
            
            F Offline
            F Offline
            ForestPoem
            wrote on last edited by
            #5

            @Chris-Kawa

            thank you .

            1 Reply Last reply
            0

            • Login

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