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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.