class Q_WIDGETS_EXPORT QCheckBox : public QAbstractButton{ Q_OBJECT Q_PROPERTY(bool tristate READ isTristate WRITE setTristate)public: explicit QCheckBox(QWidget *parent = nullptr); explicit QCheckBox(const QString &text, QWidget *parent = nullptr); ~QCheckBox(); QSize sizeHint() const override; QSize minimumSizeHint() const override; void setTristate(bool y = true); bool isTristate() const; Qt::CheckState checkState() const; void setCheckState(Qt::CheckState state);Q_SIGNALS: void stateChanged(int);protected: bool event(QEvent *e) override; bool hitButton(const QPoint &pos) const override; void checkStateSet() override; void nextCheckState() override; void paintEvent(QPaintEvent *) override; void mouseMoveEvent(QMouseEvent *) override; void initStyleOption(QStyleOptionButton *option) const;private: Q_DECLARE_PRIVATE(QCheckBox) Q_DISABLE_COPY(QCheckBox) friend class QAccessibleButton;};
C++ (Qt)ui->checkBox->setChecked(true);
ui->checkBox->setChecked(true);
21.08.2020 14:00 <DIR> bearer11.03.2014 20:54 4 173 928 D3Dcompiler_47.dll21.08.2020 14:00 <DIR> iconengines21.08.2020 14:00 <DIR> imageformats12.05.2020 01:46 67 688 libEGL.dll12.05.2020 01:46 6 297 408 libGLESv2.dll20.08.2020 10:13 1 324 main.o21.08.2020 13:29 13 210 mainwindow.o20.08.2020 10:13 3 587 moc_mainwindow.cpp20.08.2020 10:13 9 593 moc_mainwindow.o20.08.2020 10:13 14 583 moc_predefs.h14.06.2016 22:00 20 923 392 opengl32sw.dll21.08.2020 14:00 <DIR> platforms12.05.2020 01:46 8 174 864 Qt5Core.dll12.05.2020 01:46 9 684 704 Qt5Gui.dll12.05.2020 01:46 2 692 000 Qt5Network.dll12.05.2020 02:25 7 365 952 Qt5Qml.dll12.05.2020 01:54 573 688 Qt5Svg.dll12.05.2020 01:46 8 655 264 Qt5Widgets.dll21.08.2020 13:49 231 settings.ini21.08.2020 14:00 <DIR> styles21.08.2020 14:00 <DIR> translations21.08.2020 13:29 32 768 UniPort.exe
D:\Faster\Documents\Qt\UniPort\Output\release>C:\Qt\5.15.0\mingw81_64\bin\windeployqt.exe uniport.exeD:\Faster\Documents\Qt\UniPort\Output\release\uniport.exe 64 bit, release executable [QML]Adding Qt5Svg for qsvgicon.dllDirect dependencies: Qt5Core Qt5Qml Qt5WidgetsAll dependencies : Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5WidgetsTo be deployed : Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5Svg Qt5WidgetsWarning: Cannot find GCC installation directory. g++.exe must be in the path.Qt5Core.dll is up to date.Qt5Gui.dll is up to date.Qt5Network.dll is up to date.Qt5Qml.dll is up to date.Qt5Svg.dll is up to date.Qt5Widgets.dll is up to date.libGLESv2.dll is up to date.libEGL.dll is up to date.D3Dcompiler_47.dll is up to date.opengl32sw.dll is up to date.qgenericbearer.dll is up to date.qsvgicon.dll is up to date.qgif.dll is up to date.qicns.dll is up to date.qico.dll is up to date.qjpeg.dll is up to date.qsvg.dll is up to date.qtga.dll is up to date.qtiff.dll is up to date.qwbmp.dll is up to date.qwebp.dll is up to date.qwindows.dll is up to date.qwindowsvistastyle.dll is up to date.Creating qt_ar.qm...Creating qt_bg.qm...Creating qt_ca.qm...Creating qt_cs.qm...Creating qt_da.qm...Creating qt_de.qm...Creating qt_en.qm...Creating qt_es.qm...Creating qt_fi.qm...Creating qt_fr.qm...Creating qt_gd.qm...Creating qt_he.qm...Creating qt_hu.qm...Creating qt_it.qm...Creating qt_ja.qm...Creating qt_ko.qm...Creating qt_lv.qm...Creating qt_pl.qm...Creating qt_ru.qm...Creating qt_sk.qm...Creating qt_uk.qm...Creating qt_zh_TW.qm...
Warning: Cannot find GCC installation directory. g++.exe must be in the path.