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
1
vote
1 answer

QCheckBox, QRadioButton and QComboBox in QWizard: Signals/ Slots and SignalMapping - Information required

I am trying to create a QWizard. I need to use combinations of QRadioButton and QComboBox in first Window, and QCheckBox and QComboBox in second Window. In the first Window, the information coming as text per RadioButton is from Directories in a…
abhi abhi
  • 181
  • 1
  • 2
  • 10
0
votes
1 answer

QRadioButton style

Is it possible to make a QRadioButton which looks like a button,and changes it's background when checked? Which property of the class i should refer to? How to create a menu similar to this one: Any examples? I'm using QT 4.8
Evgenii.Balai
  • 939
  • 13
  • 30
0
votes
1 answer

Why are 2 sets of separate QRadioButtons conflicting with each other?

I’m trying to use 2 sets of QRadioButton(s) that select different attributes. The snippet of the code reads: self.imum_box = QHBoxLayout() pigmemti_box = QHBoxLayout() # First set of QRadioButtons for attribute ‘Font color’ self.nuntium_1 =…
Fdez
  • 3
  • 3
0
votes
0 answers

Is there a way to wordWrap a QRadioButton text in PyQt6?

I'm developing an MCQ app with long text options and just now discovered that the QRadioButton doesn't have Wordwrap option like QLabel. I'm getting my sentences truncated. Is there any way to implement this? I tried using CSS with word wrap =…
Silvio Duarte
  • 41
  • 1
  • 5
0
votes
1 answer

change theme with radio button Qwidget in Qt C++

I want to change my application Theme with QRadioButton in the QWidget application. can anyone help me? I have a Setting class that has some settings and one of them is changing the theme between dark and light. it is a C++ app with OpenGL. void…
0
votes
1 answer

PYQT5 QRadioButton, QCheckBox color

I'm using radio buttons and checkboxes and I was wondering if there was a way to change the color of the border around the checkmark/radio indications. The reason is because when I switch to dark mode on my layout, the border is no longer…
0
votes
1 answer

How can I add QRadioButton Widget to QTableView in pyqt5

I am creating a tool that that will have a search option. After searching I am creating a dataframe and displaying it in QTableView. 1- I need to show a radio button against each row in table view. Radio button will be the first column in Table…
atiwari
  • 19
  • 2
0
votes
2 answers

I'm trying to make a new 'Qradiobutton' when I click on create button

I'm trying to make a new 'Qradiobutton' when I click on create button... but the button creates just one Qradiobutton. any advice ??? my code: import sys from PyQt5.QtWidgets import ( QApplication, QMainWindow, QWidget, QPushButton,…
iso22
  • 45
  • 8
0
votes
1 answer

How to handle inputs for Radiobutton with a Textfield as its label

I'm struggling to get inputs for radio buttons that have a text field as its label. I'm also having difficulty dynamically 'check' the radio button when the text field next to it is receiving user inputs. The end goal for it is to make it function…
0
votes
1 answer

How can I put the RadioBoxes over the Layout?

I designed the following window. However, when running the code, the RadioBoxes stay behind the layout that contains the frame and the string. Could someone please tell me how to avoid this? from PyQt5.QtWidgets import * from PyQt5.QtGui import…
Yago Mj
  • 1
  • 2
0
votes
0 answers

QRadioButton ignores QLabel geometry

my code import sys from PyQt5.QtWidgets import (QRadioButton, QHBoxLayout, QButtonGroup, QApplication, QWidget, QLabel) from PyQt5.QtGui import QIcon, QPixmap from PyQt5.QtCore import QSize, Qt from PyQt5 import QtCore, QtGui, QtWidgets from…
askqest
  • 47
  • 2
  • 9
0
votes
1 answer

Combo box index value returning to default 0 when clicked radio buttons or change spin boxes in PyQt

I'm trying to connect a combo box with another combo box, radio buttons and spin boxes in PyQt5. The problem is that every time the last combo box is triggered and I click the radio buttons, or another combo box, the last combo box jumps to the…
gigi
  • 23
  • 4
0
votes
1 answer

How to format QRadioButton without label

Currently, the radiobutton widget is formatted this way: I want to get rid of the text completely, and center the indicator inside it's widget. So that it looks like this: What do I need to do to format the widget this way? I am using the editor,…
Libra
  • 2,544
  • 1
  • 8
  • 24
0
votes
1 answer

Qt Style QRadioButton label?

Is there a way to style QRadioButton labels? specifically I want to movethe label to the top, from this: to this: The latter having been done in tkinter.
Libra
  • 2,544
  • 1
  • 8
  • 24
0
votes
1 answer

How to get the active/selected QRadioButton from QTableView

I want to get the active QRadioButton from the QTableView when clicking a button. But I don't know how to do it. Let's say I have a csv file my_csv that contains ANIMAL; AGE DOG; 3 CAT; 5 COW; 5 This is my sample code: import pandas as pd from…