hoffen
10th October 2011, 08:44
Hi everyone~
I used a ComboBox with checkboxes as its items in my program, this checkbox is inherited from QStyledItemDelegate.
now I wanna check these checkboxes, but I used setEditTriggers(CurrentChanged) to initiate item editing. And of course
this will not work when I put only one checkbox in the combobox. So is there any way to initiate item editing when I hover
my mouse on the checkbox? Or how can I make it work even there is only one checkbox in the combobox?
Thanks a lot!
QAbstractItemView::SelectedClicked will work but click twice on a checkbox seems weird ~~
I used a ComboBox with checkboxes as its items in my program, this checkbox is inherited from QStyledItemDelegate.
now I wanna check these checkboxes, but I used setEditTriggers(CurrentChanged) to initiate item editing. And of course
this will not work when I put only one checkbox in the combobox. So is there any way to initiate item editing when I hover
my mouse on the checkbox? Or how can I make it work even there is only one checkbox in the combobox?
Thanks a lot!
QAbstractItemView::SelectedClicked will work but click twice on a checkbox seems weird ~~