I am using QListView ( in IconMode ... QT 4.2 ). I need to have a QPixmap tiled over QListView Background ... some thing similar to what QGraphicsView's setBackgroundBrush() achieves ... can some one guide me plz ...
Thanx
I am using QListView ( in IconMode ... QT 4.2 ). I need to have a QPixmap tiled over QListView Background ... some thing similar to what QGraphicsView's setBackgroundBrush() achieves ... can some one guide me plz ...
Thanx
If I have understood you correclty, then the following code should work.
Qt Code:
QPalette pal; listView->viewport()->setPalette(pal);To copy to clipboard, switch view to plain text mode
I have not tested this one, so please let me know if this works or not.
Mithin
www.mithin.in
travis (31st July 2006)
For QListView it could be QPalette::Base and not QPalette::Window.
travis (31st July 2006)
it worked like a charm ... on the first short i.e ... thanx a lot ... u saved me a lot of hassle ... else i would be using QGraphicsView in conjunction with Scene ... Btw i used QPalette::Base and it worked .... QPalette::Window doesnt .... Thanx for the help ...
http://ankur.wordpress.com
Bookmarks