Questions tagged [qradiobutton]

The QRadioButton widget, part of the Qt framework, provides a radio button with a text label.

The QRadioButton widget, part of the Qt framework, provides a radio button with a text label.

A QRadioButton is an option button that can be switched on (checked) or off (unchecked). Radio buttons typically present the user with a "one of many" choice. In a group of radio buttons only one radio button at a time can be checked; if the user selects another button, the previously selected button is switched off.

Source: QRadioButton class reference

71 questions
0
votes
0 answers

How to support rich text for QRadiobutton?

I need to build a new class MyRadioButton which is inherited from QRadioButton and suport rich text. Is there any method support directly in the class ? Or do you guys have any idea for this ? Otherwhile I think I'll have to build a new class which…
trangan
  • 341
  • 8
  • 22
0
votes
1 answer

31 QButtonGroups of 5 radio buttons iteration

need some assistance please. im making an interface for some equipment we have at work, the actual comms and info required are easy to sort. Im trying to reduce the code size by iterating the radiobutton check.This is the GUI. GUI Display I want to…
0
votes
0 answers

Converting a list of items in qt listwidget to radio buttons

I have created an application where files from a directory are being displayed in the qlistwidget. Now the problem is that I want this list to be shown as a list of radio buttons so that the user can select a radio button and the address of the…
HAB
  • 19
  • 6
0
votes
1 answer

QtDesigner reordering radiobuttons on saving to ui file

I'm using QtDesigner to create a uifile for a PyQT5 application. I have a collection of QRadioButtons in a ButtonGroup. The problem I'm having is that when I save to the uifile, the ordering of the buttons being saved is affecting the layout. When I…
0
votes
1 answer

Multiple QRadioButton error

I'm using PyQt5 to create a program. I created 3 Radio Buttons, but when I check the first button and check the second button after that. The program will run both of the functions which are connected to these buttons. How I can make it only run the…
BeoBeo
  • 21
  • 1
  • 8
0
votes
1 answer

How to connect QToolButtons in QButtonGroup with the QRadioButtons?

I would like to connect QToolButtons in the QButtonGroup with QRadioButtons so that they perform same operations. Here is the code: QToolButton *A=new QToolButton(); A->setCheckable(true); QButtonGroup *group = new…
Veera
  • 331
  • 3
  • 15
0
votes
1 answer

Deactivate a spinbox in Qt Designer

Is it possible to deactivate a spinbox if a radiobutton is chosen? I've tried several things, but either the spinbox is deactived all the time or it wont deactivate at all.
srky
  • 350
  • 2
  • 4
  • 12
0
votes
2 answers

Qt Designer UI (python) to JSON

I recently started using qt to build a python GUI. I have two problems I can't quite find the solutions to. the code below is a sample of what I need to build. 1: Check which radio button from a list of radio buttons in a vertical layout has been…
Haq.H
  • 863
  • 7
  • 20
  • 47
0
votes
2 answers

How do I insert radiobutton values in SQLite database using Qt?

I am very new to programming. I wanted to insert the values of my radiobutton into SQLite database but still doesn't found the right way to do it. The program consist 9 radiobutton, which is 1-3,4-5,6-7 and 8-9 in 4 different grouping/layout. Thank…
Aniq Aiman
  • 11
  • 2
0
votes
2 answers

Dragging a radio button performes the action but doesn't set the check

I am creating an application that should work on desktop and some mobile platforms. The following example creates and connects my portrait/landscape buttons, in a group, to a slot, on the release signal. m_landscapeRadio = new…
Thalia
  • 13,637
  • 22
  • 96
  • 190
0
votes
1 answer

How to click multiple times on QRadioButton but only run function once?

I have 2 radio buttons. The first one, radio1, is connected to a function func() and inside this function connects a push button, pushButton, to another function print_me(). This is the code stripped down: radio =…
Joseph
  • 586
  • 1
  • 13
  • 32
0
votes
1 answer

how to connect a QRadioButton to a QTabWidget?

i am creating a software using C++ and QT,and i have two widget one of type QRadioButon and one QTabWidget. My need is that i want to send signal from a radio button and i want that whenever the button is checked the content of tab get changed. Can…
CuriousCase
  • 745
  • 2
  • 9
  • 22
0
votes
1 answer

Can i make a group radiobutton as a group of pressed button, not as a group of circles with one point? (PyQt4)

If I use tkinter, I can set the option indicatoron = 0, and get an expected effect. This effect can be achieved with a group of QPushButton, and some additional code, I suppose. But is it a true way? Maybe, PyQt has an option, as tkinter? This…
0
votes
1 answer

Qt: Issuing a message before emitting a signal

Brief description of my application and my question: In a QTabWidget I have several groupBoxes containing each 2 QRadioButtons. E.g. Select Menu (groupBox): (RadioButton:) A (RadioButton:) B At one point of time, only one Menu can be active. Both…
Havefun
  • 13
  • 4
0
votes
0 answers

QRadioButton only checkable by the program itself

This is my first question and I hope I am doing it right. I am really new to Qt and I am fighting my way through understanding the simple parts. So while I am doing that, i found a problem with the QRadioButtons. I want them to be looking like…
anon
  • 210
  • 3
  • 11