design patterns - Qt QListWidget Item with Alternating Colors -


I am trying to be like a checkboard pattern in a QListWidget . For example, in the dark in the list is the first item in the background, and the second item in the list will be a light brown background and be fine as soon as it goes down. Is this an easy way to accomplish this?

I know that by creating a class I can extend QListWidget and then every time the list updates but I am looking for the easiest way possible any answer helpful Will happen.

  list widget-> SetAnlineingRowwers (true);   

This is an underlying property of QT

If you use Designer:

 Enter image details here

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -