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 584 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.
  • NevezN Offline
    NevezN Offline
    Nevez
    wrote on last edited by Nevez
    #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
    • NevezN Offline
      NevezN Offline
      Nevez
      wrote on last edited by
      #2

      any idea ?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on 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
        • NevezN Offline
          NevezN Offline
          Nevez
          wrote on 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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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
            • NevezN Offline
              NevezN Offline
              Nevez
              wrote on 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
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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

                • Login

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