List withembedded check boxes
Hello,
This is a simple question, I hope:
I want to create a scrollable list with a string and a checkbox by each item.
What is the best way to do this? Which control:
Here's the example:
[] Option 1
[] Option 2
[] Option 3
...
Recommendations of which control to use?
- BRC
Re: List withembedded check boxes
Quote:
Originally Posted by
bruccutler
What is the best way to do this?
Recommendations of which control to use?
It depends on what approach you want to use : custom model or convinience view.
Basically you can do that through item delegates (for a custom model) or using the setItemWidget() method of QListWidget...
Both methods will achieve what you need but one is significantly easier but far less flexible than the other...
Hope this helps. :)
Re: List withembedded check boxes
Quote:
Originally Posted by
fullmetalcoder
It depends on what approach you want to use : custom model or convinience view.
Basically you can do that through item delegates (for a custom model) or using the
setItemWidget() method of QListWidget...
Both methods will achieve what you need but one is significantly easier but far less flexible than the other...
Hope this helps. :)
Initially, because of time schedule, I'm all for convenience and less flexible. So, which is which? I assume the setItemWidget is the simpler of the two, correct?
- BRC
Re: List withembedded check boxes