qt-interest@trolltech.com
[Top] [All Lists]

Re: QCheckBox in a QPopupMenu: segmentation fault

Subject: Re: QCheckBox in a QPopupMenu: segmentation fault
From: Romain Jacquet
Date: Fri, 18 Apr 2008 15:05:28 +0200
Helge Preuss a écrit :
Maybe I don't get what you want to achieve there, but I wonder why you use a QCheckBox at all. Why don't you use setCheckable(), setItemChecked( int id, bool check ) and isItemChecked( int id ) instead? Then toggle the checked status of the "Enabled" item every time you select the item...


HTH, Hel

This context menu have both checkables item and non-checkables items. By using the functionn setCheckable() all items become checkable or non-checkable.

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>