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. treeview css/qss effect
Forum Updated to NodeBB v4.3 + New Features

treeview css/qss effect

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 557 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.
  • N Offline
    N Offline
    Nevez
    wrote on 11 Nov 2022, 06:57 last edited by Nevez 11 Nov 2022, 08:40
    #1

    4f537524-6c30-41c1-b458-8b693b850375-image.png

    Hello there,

    How can I make the indentations white as in the picture?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      Nevez
      wrote on 14 Nov 2022, 11:59 last edited by
      #2

      any idea ?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 14 Nov 2022, 20:20 last edited by
        #3

        Hi,

        Which indentation are you talking about ?
        Can you provide an example image of what you would like to achieve ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • N Offline
          N Offline
          Nevez
          wrote on 16 Nov 2022, 05:19 last edited by
          #4

          f40f5101-1eaf-48dc-a839-63f21f64c9c5-image.png
          The indents here are black as deafult. How can I change the color of this

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 16 Nov 2022, 21:18 last edited by
            #5

            Did you already check the Customizing QTreeView example in Qt's documentation ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • N Offline
              N Offline
              Nevez
              wrote on 17 Nov 2022, 07:10 last edited by
              #6

              yes I checked.
              It also completely paints the background where the indentation is located with the methods there.
              I only want to paint that indent.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 17 Nov 2022, 20:58 last edited by
                #7

                You can create your own images with the look and color you want as suggested in the stylesheet example I linked.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1

                1/7

                11 Nov 2022, 06:57

                • Login

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