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

Stylesheet Quirks?



    1. How can I center align QHeaderView's section icons?
      b201bacf-fcab-48fc-8bce-54445329fcec-image.png
      Edit: Looks like for this I have to use a QProxyStyle. Since I'm not using the verticalHeader in this table view, I can just turn it off & add horizontal padding (so the empty vertical header doesn't take up lots of unnecessary space and look bad). Still, it would be nice to see another solution to this, if there is one.

    2. In blue is the style's selection indicator (called "outline:" on some widgets). How can I remove it for QComboBox dropdowns & QListView items? In green is what I want it to look like.
      39c8c004-cac8-4446-90e0-a58383d7bb52-image.png
      The outline is also seen here.
      a4a37789-0619-489b-9cc3-7e3e212a44ee-image.png

    In the red is something I can't figure out, and it also seems to be related to the selection outline, but I can't figure out why it's different from the dropdown's selection. I also want to get rid of that.
    I did this in my stylesheet:

    * {
        outline: none;
    }
    

    But this only fixed it for QTableView/QTableWidget.


Log in to reply