72 questions
0
votes
1
answer
69
views
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 ...
1
vote
0
answers
283
views
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 ...
0
votes
1
answer
817
views
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 ...
0
votes
1
answer
336
views
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 ...
0
votes
1
answer
1k
views
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. ...
0
votes
2
answers
76
views
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,...
0
votes
2
answers
2k
views
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 ...
-1
votes
1
answer
492
views
How to connect a QRadioButton of a QTableWidget cell with another QTableWidget cell using an arrow?
I have a QListWidget and a QGraphicsView both subclassed to overwrite some of their members. I prepared a minimal verifiable example showing the problem I have here
From the QListWidget I can drag and ...
0
votes
1
answer
92
views
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 ...
2
votes
3
answers
14k
views
Toggling a QRadioButton in pyqt5: uncheck when a checked radio button is clicked
I'm using some QRadioButtons inside a QButtonGroup in pyQt5. I would like the user to be able to select one of the exclusive options or none, so if he accidentally clicks a radio button, he should be ...
2
votes
2
answers
418
views
How to make QRadioButton clickable area the whole button instead of just on the text
I'm using PySide2, within maya 2018, if that matters. A QRadioButton will respond only if clicked in the area of the text, even if the button's rectangle is larger. A QPushButton can be clicked ...
3
votes
1
answer
2k
views
Multiple Radio button groups are linking, causing strange behavior
My program generates forms on the fly based on SQL data. I make two radio buttons and a QLineEdit entry right next to them. When the radio button on the right is checked, the QLineEdit is enabled ...
0
votes
0
answers
291
views
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
...
1
vote
0
answers
148
views
If there is the only one QRadioButton, it works as QCheckBox
I need to add one or several radiobuttons (depends on registered GPU Models). It looks like:
QVBoxLayout *vLayout = new QVBoxLayout(this);
QList<OpenCLGpuModel *> gpus = getGpus();
foreach (...
1
vote
1
answer
1k
views
Is it possible to use custom scalable images for a QRadioButton?
With a simple QPushButton, if I want to use custom images while the size of the button is determined by a layout (so it can be scaled freely), the only possibility is to override border-image in the ...