[Qt-interest] QRadioButton events handling best practice
Sean Harmer
sean.harmer at maps-technology.com
Tue Nov 2 16:39:11 CET 2010
On Tuesday 02 November 2010 15:33:26 Alex Ivasyuv wrote:
> Hi,
>
> I have for example, 3 radio buttons. And on any click on it, I need to
> know which one was clicked.
> As I understand, I have to create 3 radiobutton objects, and connect
> them (3 items) with signal & slot.
> Then handle it's clicking...
>
> What is the best practice to do it with Qt, maybe there are present
> already some mechanisms to do it, e.g.
> add radiobuttons to group and connect group on click, or smth like that...
QButtonGroup is your friend ;-)
Sean
More information about the Qt-interest-old
mailing list