tags:

views:

37

answers:

1

Hi, I am creating a small window to get a single input from user. For this I want to use radio buttons. In net I didn't find exact answer. There are some pallets they are adding, so just I want to know how to add QRadioButton to QMainWindow. Can AnyBody help me?

A: 

Simply specifies the parent (your QMainWindow) when creating the RadioButton

QMainWindow *w = new QMainWindow();
QRadioButton *radiobutton = new QRadioButton(w);
w->show();

More @ http://doc.trolltech.com/4.1/qradiobutton.html

VoltX