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 increase the visible size of QTreeView

how to increase the visible size of QTreeView

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

    I have a QtreeView , in which I have three columns , on action I set width of first column is

    class myView :public QTreeView {

    };

    myView::action() {
    setColumnWidth(0,COLUMN_SIZE)
    }

    how to increase the visible size of the whole treeview in action1 so that my first and second column are at least visible

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

      Hi
      Please play around with
      http://doc.qt.io/qt-5/qtreeview.html#resizeColumnToContents

      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