qgroupbox.sip 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // qgroupbox.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtWidgets Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QGroupBox : public QWidget
  22. {
  23. %TypeHeaderCode
  24. #include <qgroupbox.h>
  25. %End
  26. public:
  27. explicit QGroupBox(QWidget *parent /TransferThis/ = 0);
  28. QGroupBox(const QString &title, QWidget *parent /TransferThis/ = 0);
  29. virtual ~QGroupBox();
  30. QString title() const;
  31. void setTitle(const QString &);
  32. Qt::Alignment alignment() const;
  33. void setAlignment(int);
  34. virtual QSize minimumSizeHint() const;
  35. bool isFlat() const;
  36. void setFlat(bool b);
  37. bool isCheckable() const;
  38. void setCheckable(bool b);
  39. bool isChecked() const;
  40. public slots:
  41. void setChecked(bool b);
  42. signals:
  43. void clicked(bool checked = false);
  44. void toggled(bool);
  45. protected:
  46. virtual void initStyleOption(QStyleOptionGroupBox *option) const;
  47. virtual bool event(QEvent *);
  48. virtual void childEvent(QChildEvent *);
  49. virtual void resizeEvent(QResizeEvent *);
  50. virtual void paintEvent(QPaintEvent *);
  51. virtual void focusInEvent(QFocusEvent *);
  52. virtual void changeEvent(QEvent *);
  53. virtual void mousePressEvent(QMouseEvent *event);
  54. virtual void mouseMoveEvent(QMouseEvent *event);
  55. virtual void mouseReleaseEvent(QMouseEvent *event);
  56. };