[Qt-interest] radio menu item?
Yifei Li
yifli at mtu.edu
Mon Sep 14 16:06:09 CEST 2009
thank you for the reply.
According to the document, QActionGroup is exclusive by default.
Although the menu items in my QActionGroup behave in a mutual exclusive way,
they look the same as checkboxes instead of radio buttons
Yifei
----- Original Message -----
From: "R. Reucher" <rene.reucher at batcom-it.net>
To: qt-interest at trolltech.com
Sent: Monday, September 14, 2009 9:55:45 AM GMT -05:00 US/Canada Eastern
Subject: Re: [Qt-interest] radio menu item?
On Mon, 14 Sep 2009 09:37:37 -0400, Yifei Li wrote:
> I use QActionGroup::addAction, but the menu items are made like
> checkboxes.
Sure you didn't use QActionGroup::setExclusive(false)? Because judging
from the docs, if exclusive == true (default), radio buttons should be
used... I've not tried it myself, though.
See http://qt.nokia.com/doc/4.5/qactiongroup.html#details
HTH, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list