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. how to align multi column in QTreeWidget......
Forum Updated to NodeBB v4.3 + New Features

how to align multi column in QTreeWidget......

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

    how to align multi column in QTreeWidget......
    i set 1st column a simple buttun, 2nd column a simplt button, using ItemWidget...and the 3rd column the normal icon and text....
    but the when there are hirarchy, the Qt small triangle is infront of all columns, and the 1st column is streched...however the 2nd and 3rd column are in a straight line vertically....this is really not what i want....
    is there any way to "push" the 2nd and 3rd column to the 1st column according to every single row's situation....

    ps. i know use just 1 column, and customise a QWidget to setItemWidget is a possible way. However, i want to know is there any simple way to relize this.

    thank you very much!

    1 Reply Last reply
    0
    • O Offline
      O Offline
      opengpu2
      wrote on last edited by
      #2

      how can i upload local pic ?

      1 Reply Last reply
      0
      • RatzzR Offline
        RatzzR Offline
        Ratzz
        wrote on last edited by
        #3

        May be https://postimage.org/

        --Alles ist gut.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          opengpu2
          wrote on last edited by
          #4

          u mean firstly i upload pic into this site, and then set img url in this post?
          thank you !

          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