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. QGridLayout border
Qt 6.11 is out! See what's new in the release blog

QGridLayout border

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 3.5k Views 1 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.
  • S Offline
    S Offline
    s002wjh
    wrote on last edited by
    #1

    anyway to draw vertical or horizontal border line in QGridLayout, kind like excel with border line in each cell

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

      Hi
      No as far as as i have seen.
      But you could make a custom widget that inspect its layout and draw the lines on its surface.
      Since layout is non visual, that will show trough.
      You should be able to get info via
      http://doc.qt.io/qt-5/qgridlayout.html#cellRect
      You must also hook up to signal from layout ( if any ) to let widget know if layout changes.

      But you need cells , why didn't you use QTableWidget/view ?

      1 Reply Last reply
      1

      • Login

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