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. Styling a QTableWidget

Styling a QTableWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 232 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.
  • A Offline
    A Offline
    Adam Crowe
    wrote on last edited by
    #1

    Hello,

    I am trying to adapt QTableWidget to behave in an Excel-like fashion. The data side of it is relatively straightforward but a cosmetics are proving to be quite difficult - in particularly, the borders.

    Is it possible to style individually the border between the cells? I can create a QLineEdit widget in every cell and style those but QTableWidget's own grey border line still remains and ruins the illusion.

    In an ideal world, it would be great to be able to reference a particular cell and set its stylesheet to "border-right: 1px solid black" or worse case scenario even paint it manually.

    Can anyone suggest a solution please? Or is a QTableWidget the wrong thing to use for this altogether?

    Thank you!

    Adam

    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