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. Colours in Qt
Forum Updated to NodeBB v4.3 + New Features

Colours in Qt

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 573 Views 2 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.
  • VineelaV Offline
    VineelaV Offline
    Vineela
    wrote on last edited by
    #1

    In Style sheet i found the names of colour set directly by saying solid red, groove gray etc. for borders, so here i need the list of colours that are available which may help a lot.

    J.HilkJ 1 Reply Last reply
    0
    • VineelaV Vineela

      In Style sheet i found the names of colour set directly by saying solid red, groove gray etc. for borders, so here i need the list of colours that are available which may help a lot.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      @Vineela
      https://doc.qt.io/qt-5/qml-color.html#svg-color-reference

      It's for QML, but it should be the same supported color names by QStyleSheet


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

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

        Stylesheets use QColor, so take a look at QColor predefined values. It's basically the SVG colors set.
        You can also use any other color with the standard CSS syntax.

        1 Reply Last reply
        6
        • VineelaV Offline
          VineelaV Offline
          Vineela
          wrote on last edited by
          #4

          I'm impressed @J-Hilk @Chris-Kawa thnk u sooo much saved my day.

          1 Reply Last reply
          1
          • VineelaV Offline
            VineelaV Offline
            Vineela
            wrote on last edited by
            #5

            border: 2px darkred;
            this is used for button style sheet, not working

            mrjjM 1 Reply Last reply
            0
            • VineelaV Vineela

              border: 2px darkred;
              this is used for button style sheet, not working

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Vineela
              Hi
              Try
              border: 1px solid darkred

              alt text

              VineelaV 1 Reply Last reply
              5
              • mrjjM mrjj

                @Vineela
                Hi
                Try
                border: 1px solid darkred

                alt text

                VineelaV Offline
                VineelaV Offline
                Vineela
                wrote on last edited by
                #7

                @mrjj so u say use solid everytime?

                mrjjM 1 Reply Last reply
                0
                • VineelaV Vineela

                  @mrjj so u say use solid everytime?

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Vineela
                  You can also use other styles than solid but
                  yes, you should specify that parameter.

                  1 Reply Last reply
                  2

                  • Login

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