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 paint grid
QtWS25 Last Chance

QTreeView paint grid

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 371 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.
  • A Offline
    A Offline
    Alexey Serebryakov
    wrote on last edited by Alexey Serebryakov
    #1

    Hi all, I wish make QTreeView looks exactly like QTableView. How can I achive that? Also draw grid without any paddings, margins, spaces and so on...

    Thanks a lot.

    JonBJ 1 Reply Last reply
    0
    • A Alexey Serebryakov

      Hi all, I wish make QTreeView looks exactly like QTableView. How can I achive that? Also draw grid without any paddings, margins, spaces and so on...

      Thanks a lot.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Alexey-Serebryakov
      Well one display a tree and the other displays only flat rows, so they don't look identical. I think you'll have to show/explain what what bits you are wanting to alter how.

      A 1 Reply Last reply
      0
      • JonBJ JonB

        @Alexey-Serebryakov
        Well one display a tree and the other displays only flat rows, so they don't look identical. I think you'll have to show/explain what what bits you are wanting to alter how.

        A Offline
        A Offline
        Alexey Serebryakov
        wrote on last edited by Alexey Serebryakov
        #3

        @JonB Just imagine QTreeView with some columns. Branch rows has branch icon and looks like QTableView with grid lines. User can click branch icon and children rows are expanded but looks like ussual table rows. All datas in items are read only and not editable but user can select by row entire.

        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