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. QTreeView - branch buttons appearance and size
Forum Updated to NodeBB v4.3 + New Features

QTreeView - branch buttons appearance and size

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

    Hi all,

    I have implemented a QTreeView and I would like to change the size and appearance of the branch openers and closers.

    Not sure what they are called, on some platforms they are shown are + and - symbols in a box, on other platforms they are shown as a triangle which rotates. I would like to make sure it appears above a certain size on a specific platform or at least appears consistently across all.

    I have already tried changing the row height, but the actual +/- remains too small for usability on a touchscreen device.

    Thanks.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2

      You can do it styling QTreeView::branch see http://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      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