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. Set a decorative “lines” in QTreeWidget
Forum Updated to NodeBB v4.3 + New Features

Set a decorative “lines” in QTreeWidget

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 2.0k 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.
  • T Offline
    T Offline
    t0msk
    wrote on last edited by
    #1

    Hello,

    how can I set a "decorative lines" (see picture below) in QTreeWidget? These lines are shown when you expand a row.

    image

    Thanks :)

    Student who loves C/C++

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      I think you can use style sheets
      http://doc.qt.io/qt-4.8/stylesheet-examples.html#customizing-qtreeview
      (note that its show a table view, but should work for table widget also)
      look under the ::branch subcontrol.

      1 Reply Last reply
      2
      • T Offline
        T Offline
        t0msk
        wrote on last edited by
        #3

        Oh great :) Thank you

        Student who loves C/C++

        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