I tried that but it doesn't, I guess I have to calculate height myself :/.
I'm also currently trying to set the QListView background to transparent using this :
mListView->setPalette(palette);
mListView->setAttribute(Qt::WA_NoSystemBackground, true);
QPalette palette;
palette.setColor(QPalette::Background, QColor(0, 0, 0, 0));
mListView->setPalette(palette);
mListView->setAttribute(Qt::WA_NoSystemBackground, true);
To copy to clipboard, switch view to plain text mode
Doesn't seem to work either.
Edit : Solved using this :
palette.setColor(QPalette::Base, QColor(0, 0, 0, 0));
To copy to clipboard, switch view to plain text mode
Bookmarks