Questions tagged [qcheckbox]

A QCheckBox is a GUI class from the Qt toolkit which provides a checkbox with a text label.

A QCheckBox is an option button that can be switched on (checked) or off (unchecked). Checkboxes are typically used to represent features in an application that can be enabled or disabled without affecting others.

The official documentation for this Qt class can be found here

175 questions
0
votes
2 answers

Use an QObject found by it's QObjectName

I have a little problem in my program. I have a config file put in settings. I pull from it the names of the object I need to be checked (these are QCheckBox). I have this piece of code (It compiles and runs but when it's at "cBox->setChecked" it…
Pico
  • 303
  • 3
  • 9
0
votes
2 answers

Disable/Enable the QCheckBox text

I am working on a sample app where I need to disable the text of a checkbox when the checkbox is not checked and enable it when checked. Code: if(ui->checkBox->isChecked() == true) { // Enable the text of the checkbox } else { // Disable the…
Gojira
  • 171
  • 4
  • 14
0
votes
1 answer

creating Custom Widget using QtDesigner PyQt4

Can anyone please suggest me best practice to create a Custom widget using PyQt4 ? I want to see how to approach adding Qpushbutton or QCheckboxGroup inside the cells of QTable Widgets that will be added on user clicking add new row to QTable at…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
1 answer

Qt - Access a checkbox in a table

I have a table and each row in the table has a checkbox in it's first column. I need to make it so I can detect which checkboxes are checked and delete those rows when a button is pressed. QWidget * chkWidget = new QWidget(); QHBoxLayout *center =…
Mitch
  • 519
  • 2
  • 7
  • 16
0
votes
2 answers

QCheckBox->isChecked() issue

The following code is not working when the checkbox is checked. Whether the checkbox is checked or not, it jumps to the "else" statement. void MainWindow::runButtonClicked() { if (MainWindow::betAllRed->isChecked()==true){ …
chuckieDub
  • 1,767
  • 9
  • 27
  • 46
0
votes
0 answers

PyQt: QCheckBox text on the left?

Possible Duplicate: Change checkbox position for a QCheckBox This is a really straight-forward question: how can I make the QCheckBox text to be on the left side of the checkbox and not on the right?
Antoni4040
  • 2,297
  • 11
  • 44
  • 56
-1
votes
0 answers

PyQt5 how to create a matrix of objects and access them later

I'm trying to create an object (a QGroupBox with 2 QCheckBoxes inside) and replicate it in a 6x4 matrix. I need to access every QGroupBox label and every QCheckBox (and also other widgets i'm willing to put in here later) but i'm stuck in this…
cexco
  • 1
-1
votes
1 answer

How create a signal with checkbox in QTableWidget Pyqt6

I begin with python v3.10, I use actually PyQt6 for the design of the windows. I created a QTableWidget in which I put a checkbox with a picture. Now I would like to create a signal to execute a function when I click on it. I tried, connect,…
-2
votes
2 answers

PyQt5 QGroupBox with QCheckBox - dismiss auto disable

I want to use a QGroupBox which will be checkable, but i don't the content widgets of QGroupBox to be disabled when the QGroupBox checkbox is Unchecked. From reference: checked : bool This property holds whether the group box is checked If the…
Chris P
  • 2,059
  • 4
  • 34
  • 68
-2
votes
1 answer

QWidgetAction in QMenu are un-checkable if it has menu within

I am trying to implement tri-state checkboxes into a QMenu. My menu hierarchy will be something like: menuA |-- a101 |-- a102 menuB |-- b101 Where the first tier (menuA, menuB) are of tri-state checkboxes while its sub items are normal…
Teh Ki
  • 455
  • 1
  • 3
  • 14
1 2 3
11
12