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

Is it possible to select/unselect QChecBox by passing th mouse over the labels?

I'm trying to select/unselect Qcheckbox by clicking on a label and moving the mouse on other Checkboxes What I would like is, for example, to click on the '0' and maintaining the mouse clicked and move it down on the '1', '2'... by moving on those…
ymmx
  • 4,769
  • 5
  • 32
  • 64
0
votes
1 answer

Problem with Tristate QCheckBox not repainting itself when set programmatically

When I have a QCheckBox with tristate set true, it does not repaint itself when transitioning from Qt:PartiallyChecked to setChecked(true) programatically. A minimal example built in QDesigner places a QCheckBox and QPushButton on the central widget…
MangoCat
  • 89
  • 5
0
votes
1 answer

QCheckBox to check/uncheck all QCheckboxes from another class in PyQt5

I have two QWidget classes: Widget1 and Widget2, and I would like to have a QCheckBox in the first class (Widget1) that can check/uncheck all the QcheckBoxes generated by the second class (Widget2). Is there a way to do this? Many thanks in advance…
Marc
  • 29
  • 6
0
votes
1 answer

do not keep the checkbox when close window

When I click open in Example, open the windowncheck window, in the window windowncheck I check to checkbox_5 and checkbox_6 then I press close, when I reopen windowncheck, checkbox_5 and checkbox_6 are no longer available. how to checkbox_5 and…
nghiep
  • 3
  • 1
0
votes
1 answer

how can I put elements of an array in a checkbox?

I am using react hooks and have a dynamically filled array of values ​​after a backend call. How can I then insert these values ​​(which I don't know a priori) in a checkbox? I get some properties from another component. These properties change…
dx584905
  • 163
  • 2
  • 13
0
votes
1 answer

Add qcheckbox in every row of qtablewidget

I'm trying to add a checkbox in each row of a qtablewidget. When the table has more than one row, the checkbox is not inserted in the first row. Just in the last one. But the data coming from a db are inserted in every row. Can anyone please explain…
MeNoSmart
  • 1
  • 2
0
votes
1 answer

Can I use a variable from a function that's inside of another class?

What I'm trying to do is create 1 window with 8 check boxes. The user will click the ones that are relevant and press "Calculate Job". That button should then open a new window that contains buttons/sections/whatever for only the options that were…
mfrwll
  • 3
  • 2
0
votes
2 answers

Why can't I set a tristate QCheckBox to Qt.PartiallyChecked and have the QCheckBox display a partial check?

I'm using python3 and PyQt5. The example below has three QPushButtons and a QCheckBox with setTristate to true. I can click directly on the checkbox and it will cycle through the three states just fine. THE PROBLEM: If I attempt to set the state…
snaxxus
  • 339
  • 2
  • 6
0
votes
2 answers

QStyledItemDelegate: Add disabled check indicator

I'm using a QTreeView with a custom QStyledItemDelegate to display various parameter items. I want all of the items to have a check indicator, however some of the Checkboxes should be disabled (but still visible and set checked!). Here's the…
Alex
  • 95
  • 1
  • 10
0
votes
2 answers

how to extract dataframe header values and stored in a qlistwidget using pyqt5 in python

I have a GUI app that load csv file as dataframe in a QtableView and perform some functions on the data one of the function is to extract the headers and store it in a QlistWidget with check box or a group of checkbox.Until now i am able to just…
Pyleb Pyl3b
  • 183
  • 3
  • 16
0
votes
1 answer

quasar q-checkbox does not get checked on data edit

All, I have edit record scenario in which checkboxes not automatically gets selected based on the model data. As shown in the image, I have debug display for the checkbox model. Does quasar support checked data automatically from model or do I need…
bizready
  • 139
  • 3
  • 14
0
votes
1 answer

How to make a bold font to a QCheckBox

I have the following QCheckBoxes that will enable/disable alarms as shown below. The problem I have is how do I change the font of the words "ON" and "OFF" only to make them bold? I am not sure how to combine a non-bold font with a bold font in the…
Emanuele
  • 2,194
  • 6
  • 32
  • 71
0
votes
0 answers

Qt QCheckBox click and drag through multiple checkboxes

I have a sort of to-do list app and I would like to make it so that a user can click and drag down a list of checkboxes, toggling their state to be that of the first box clicked. Basically the same as this HTML question here: "Check" Multiple…
Spencer
  • 1,931
  • 1
  • 21
  • 44
0
votes
2 answers

QT and check boxes problem

probably what i am asking is very easy, but i'm stuck! :( i have a QWidget in which i load a QGridLayout in which i add a number of QCheckBox'es i can't seem to figure out how to catch the changestate signal from the checkboxes.... the check boxes…
geo
  • 53
  • 2
  • 4
0
votes
1 answer

QTreeView checkbox color

I'm trying to add color to the checkboxes in a QTreeView, like so I switched from a QStyledItemDelegate to a QItemDelegate to have a better control on the drawing process, mostly for the drawCheck method. I can't get the painter to draw the colors…
Nil
  • 2,345
  • 1
  • 26
  • 33