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

c++ - Cmake produces file extensions in static library archives -

c# - Roxy file manager in MVC doesn't accept session path -

c# - XML - Serialize class - Some questions -