Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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 !!



  • This post is deleted!

Log in to reply