bunjee
18th April 2008, 17:15
Hey there,
I'm using a QListView to display a delegated QStringList.
Is there a way to get the height of the ListView Scrolling area ?
wysota
18th April 2008, 18:10
Doesn't viewport()->height() work?
bunjee
18th April 2008, 18:16
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 :
QPalette palette;
palette.setColor(QPalette::Background, QColor(0, 0, 0, 0));
mListView->setPalette(palette);
mListView->setAttribute(Qt::WA_NoSystemBackground, true);
Doesn't seem to work either.
Edit : Solved using this :
palette.setColor(QPalette::Base, QColor(0, 0, 0, 0));
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.