Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Tableview and listview

Tableview and listview

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 294 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.
  • P Offline
    P Offline
    P.priya
    wrote on last edited by
    #1

    Hi, when we using listview and tableview in customized for what is the best way to create borders of customised row and column

    B 1 Reply Last reply
    0
    • P P.priya

      Hi, when we using listview and tableview in customized for what is the best way to create borders of customised row and column

      B Offline
      B Offline
      Bob64
      wrote on last edited by Bob64
      #2

      @P-priya probably some variation on using a Rectangle with the border colour and width set. It depends what your delegate looks like. For example if it is a simple Label then the rectangle can be set as the background. Alternatively you might want to place your whole delegate in a rectangle. It depends what you are trying to do.

      One thing to watch out for is that you will get double thickness borders between elements by default. Let's say your rectangle border has width 1. Where two items are adjacent, each will contribute a border of thickness 1 so it will look like a border of thickness 2 on interior elements (but not the top and bottom border of whole list). The trick to avoid this is to set your ListView spacing to -1 (or -3 if the border width is 3 etc.).

      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