Название: QRadioButton + Insert Отправлено: vexar от Июля 22, 2009, 03:19 Есть два QRadioButton
Код: RadioBox1 = new QRadioButton(tr("PK")); я их объединил в QButtonGroup Код: te = new QButtonGroup(); но немогу сообразить как их передать в insert и чтобы RadioBox1 записывал значение в БД = 2, а RadioBox1 = 1 Код: QString str5 = LineEditName->text(); Название: Re: QRadioButton + Insert Отправлено: Rcus от Июля 22, 2009, 03:55 Assistant -> QButtonGroup
Цитировать void QButtonGroup::setId ( QAbstractButton * button, int id ) Sets the id for the specified button. Note that id can not be -1. Цитировать int QButtonGroup::checkedId () const Returns the id of the checkedButton(), or -1 if no button is checked. Название: Re: QRadioButton + Insert Отправлено: vexar от Июля 22, 2009, 06:15 А можно не большой пример? Что-то не как въехать не могу.
|