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 to change the border color of each cell without changing background color!
Forum Updated to NodeBB v4.3 + New Features

How to change the border color of each cell without changing background color!

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

    I want to change the border color of the tableWidget without changing the main color.

    This is what I have in the tableWidget:
    imane1.png

    And, when i wrote the styleSheet :

    QTableView::item {
    border: 1px solid white;

    }

    imane2.png
    This is what happens:
    imane3.png

    But, I don't know how to change any border color of the cell WITHOUT changing the color of the cell. I still want the item(0,0) to be in black, and the item(0,1) to be in white...
    Thank you so much !!

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fres
      wrote on last edited by fres
      #2
      This post is deleted!
      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