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

QTableView/QSqlQueryModel stylesheet selectors?



  • Is there anyway I can target all rows from a QTableView(or at least from QSqlqueryModel) to add padding to the rows using stylesheets? Or an alternative solution?

    I tried using the following selectors for stylesheets:
    @QTableView::item{
    padding:20px;
    }@

    But without succes.


Log in to reply