About 1,370,000 results
Open links in new tab
  1. c++ - QCheckbox name access - Stack Overflow

    Jul 21, 2014 · If you want to access the checkboxes later, you can just use the find children method as follows: QStringList myStringList; QList<QCheckBox *> list = vbox …

  2. QCheckBox Class | Qt Widgets | Qt 6.9.0

    Checkboxes are typically used to represent features in an application that can be enabled or disabled without affecting others. Different types of behavior can be implemented. For …

  3. [SOLVED] Read checkbox checked state? - Qt Forum

    Feb 12, 2014 · I want to know how to read the state of a checkbox (is it checked or not) from my C/C++ code. I'm told for the last 1000 pages I've read that it can be done, but every example …

  4. Qt Checkbox Programming: Tips, Tricks, and Best Practices

    Apr 26, 2025 · Example Use Cases. Hierarchical Selection In tree views or similar structures, tristate checkboxes can represent the selection state of parent and child items. Filtering Data …

  5. c++ - How do you get a widget's children in Qt? - Stack Overflow

    You can use the findChild() function with the object name to get a specific child. You can also use findChildren() to get all the children that have the same name and then iterate through the list …

  6. c++ - QWidget findChildren when objectname contains a specific string ...

    May 11, 2018 · Use findChildren() along with objectName().contains(), for example: QList<QWidget*> subwidgets = this->findChildren<QWidget*>(); QListIterator<QWidget*> …

  7. Regarding how to find the children - Qt Forum

    Aug 11, 2017 · how to find children ?. If i try to use below code, getting zero as list size. QVBoxLayout * layout = m_vbox->findChild<QVBoxLayout *> (); QList<QWidget *> list = …

  8. c++ - Is there a way to find QObject child by class name

    Mar 11, 2018 · It is possible to find a child if we know its type and name (if specified) like this: QPushButton *button = parentWidget->findChild<QPushButton *>("button1"); However each …

  9. qt - Binding Checkbox 'checked' property with a C++ object …

    When I check/uncheck the checkbox, or when I call setStatus() from my C++ code, nothing happens. It seems the property checked of checkboxes haven't the same behavior as TextEdit …

  10. qt - How do I find and use QML child elements in C++ - Stack Overflow

    I am trying to make a QML Object that I can add an arbitrary number of children to and then manipulate them in C++. I have code that works, but I think that I have the wrong approach, …

Refresh