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

How can I specify the line spacing in the TableView.



  • There is multi-line text to display in one cell. I want to change the space between lines. Is it possible?



  • Might want to take a look into the model you use. The QTableView "asks" the model how and what to display for each cell (model::data). Here the different roles give different options. Qt::FontRole might be where you are able to alter the line spacing.
    good luck


Log in to reply