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 can I add gap between QTableView rows?
Forum Updated to NodeBB v4.3 + New Features

How can I add gap between QTableView rows?

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

    I would like to have a table like this style:
    000.png
    the default style without adding any spacing style is like this:
    111.png
    I tried to add margin in item style and got a strange style like this:
    222.png
    the space added will draw in white background color for alternate rows.
    Is there any convenience way to add spacing between rows? thanks for any hint for this.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by
      #2

      How about use border instead of margin?

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved