You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, April 6th 2004, 7:53am

Grid lines in QListView

Hi,
I am developing an application in KDE using KDE/Qt library. I have a tab dialog in which i need to have a listview and some listview items.

Now, my requirement is that i need to have grid lines and alternating coloring in my QListViewItems.
Is there any flags that has to be set while creating a listview or listview item? if so what flag is it?
Any help is appreciated..

Cheers!
Veena.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Tuesday, April 6th 2004, 6:50pm

Alternating colors is already implemented in KListView and KListViewItems.

Cheers,
_

P.S. Development questions are better suited at www.qtforum.org
Qt/KDE Developer
Debian User

3

Wednesday, April 7th 2004, 6:13am

Thanks for quick response..could u explain how?
cheers!
Veena.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Wednesday, April 7th 2004, 6:22pm

I am not sure how they implemented alternating colors, I guess by setting different values in the QColorGroup instance before passing it on to the base class' implementation.

Cheers,
_
Qt/KDE Developer
Debian User