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.3k 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.
  • F Offline
    F Offline
    ForestPoem
    wrote on 30 Dec 2015, 01:53 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?

    R 1 Reply Last reply 30 Dec 2015, 04:49
    0
    • F ForestPoem
      30 Dec 2015, 01:53

      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?

      R Offline
      R Offline
      Ratzz
      wrote on 30 Dec 2015, 04:49 last edited by
      #2

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

      --Alles ist gut.

      F 1 Reply Last reply 30 Dec 2015, 07:32
      1
      • R Ratzz
        30 Dec 2015, 04:49

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

        F Offline
        F Offline
        ForestPoem
        wrote on 30 Dec 2015, 07:32 last edited by
        #3

        @Ratzz

        thank you .

        solved.

        1 Reply Last reply
        0
        • C Online
          C Online
          Chris Kawa
          Lifetime Qt Champion
          wrote on 30 Dec 2015, 07:54 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 6 Jan 2016, 04:26
          0
          • C Chris Kawa
            30 Dec 2015, 07:54

            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 6 Jan 2016, 04:26 last edited by
            #5

            @Chris-Kawa

            thank you .

            1 Reply Last reply
            0

            1/5

            30 Dec 2015, 01:53

            • Login

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