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. Unwanted line in QTreeWidget item rendering
Forum Updated to NodeBB v4.3 + New Features

Unwanted line in QTreeWidget item rendering

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 1.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.
  • H Offline
    H Offline
    hsorby
    wrote on last edited by
    #1

    I am trying to style my QTreeWidget using style sheets but there is this line that appears that I cannot appear to control. Can anybody tell me who draws it or better tell me how I can control it via stylesheets the colour thickness etc. (if possible).

    !http://oi60.tinypic.com/hwhkld.jpg(line in QTreeWidgetItem rendering)!

    Here is a picture showing the line (pointed to by the arrow)

    Thanks.

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

      Hi and welcome to devnet,

      Can you share your style sheet so other can recreate your situation ?

      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
      • H Offline
        H Offline
        hsorby
        wrote on last edited by
        #3

        This was done sans stylesheet in Qt 4.8

        settings in force:

        indentation: 10
        columnCount: 1
        headerHidden: true

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Running KDE ?

          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
          • H Offline
            H Offline
            hsorby
            wrote on last edited by
            #5

            Yes as a matter of fact I am, is this a bug I have missed?

            I have just discovered that if I put an item delegate in place which does nothing then the line is not drawn anymore.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I don't know if it's bug or simply the style doing it. Do you also experience this with a QTreeView ?

              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
              • H Offline
                H Offline
                hsorby
                wrote on last edited by
                #7

                I have not tried this, I will give it a go.

                1 Reply Last reply
                0

                • Login

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