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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -