I’m trying to select/unselect Qcheckbox by clicking on a label and moving the mouse on others Checkboxes What I would like is, for example, click on the ‘0’ and maintaning the mouse clicked and move it down on the ‘1’, ‘2’… by moving on those checkboxes their must change their value (True to False). I ..
I have nine QCheckBoxs inside a QGridLayout inside a QVBoxLayout inside a QGroupBox, and I have a function defined in the QGroupBox that updates a QScrollArea inside the QVBoxLayout, and I want the function be executed whenever any of the group of checkboxs is clicked. How to achieve the said task? I only know .stateChanged ..
I would like to filter the items in a PyQt5 QCombobox when checking certain checkboxes. Example: samplelist=["a1","a2","a3","b1","b2","b3"] is the list of items of the QCombobox comboBox and I have two checkboxes checkBoxa and checkBoxb. If checkboxa checked and checkboxb unchecked: comboBox has the items ["a1", "a2", "a3"] checkboxa unchecked and checkboxb is checked: comboBox has ..
I work on python plugin for QGIS. In this plugin I have created a QTableWidget with 3 columns. These columns are QCheckbox, QTableWidgetItem and QComboBox. I would like to retrieve the values contained in these 3 columns. For the moment I managed to get the values of QComboBox and QTableWidgetItem but I can’t seem to ..
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 what I am doing wrong ..
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 selected in window 1. Sounds ok… I have window 1 set up ..
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 value from the neighboring buttons, it only gives me checked or ..
As a basic example, from PySide2.QtWidgets import QApplication, QDialog, QCheckBox, QHBoxLayout import sys app = QApplication() window = QDialog() layout = QHBoxLayout() check = QCheckBox(‘Checkie McCheckerson’) layout.addWidget(check) layout.addStretch(1) window.setLayout(layout) window.show() sys.exit(app.exec_()) When the window is resized by the end-user, I want the checkbox’s indicator to stretch with it, either as well as or instead of ..
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 Delegate code: class MyDelegate(QtWidgets.QStyledItemDelegate): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def initStyleOption(self, option, index): super().initStyleOption(option, ..