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. QTreeWidget - Changing the width of the selection rect of an item
Forum Updated to NodeBB v4.3 + New Features

QTreeWidget - Changing the width of the selection rect of an item

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

    Hi,
    It's about the selection rect width when passing the mouse over a tree widget item.
    Is it possible to easily change this width using qss?
    By default, the hover rect is always displayed with a left margin.
    I'd like a selection rect covering all the width of the tree widget, whatever the item depth.
    Thank you for your answers.
    Regards

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      I think it will not work with qss.
      The element is typically selected in the text area, the area before is the decoration area. To change this, you have to program the stuff....

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daugoh
        wrote on last edited by
        #3

        Hi Gerolf,

        Thank you for this quick answer.
        So let's programing ...

        Regards

        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