qprogressbar.sip 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // qprogressbar.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 QProgressBar : public QWidget
  22. {
  23. %TypeHeaderCode
  24. #include <qprogressbar.h>
  25. %End
  26. public:
  27. enum Direction
  28. {
  29. TopToBottom,
  30. BottomToTop,
  31. };
  32. explicit QProgressBar(QWidget *parent /TransferThis/ = 0);
  33. virtual ~QProgressBar();
  34. int minimum() const;
  35. int maximum() const;
  36. void setRange(int minimum, int maximum);
  37. int value() const;
  38. virtual QString text() const;
  39. void setTextVisible(bool visible);
  40. bool isTextVisible() const;
  41. Qt::Alignment alignment() const;
  42. void setAlignment(Qt::Alignment alignment);
  43. virtual QSize sizeHint() const;
  44. virtual QSize minimumSizeHint() const;
  45. Qt::Orientation orientation() const;
  46. void setInvertedAppearance(bool invert);
  47. void setTextDirection(QProgressBar::Direction textDirection);
  48. void setFormat(const QString &format);
  49. QString format() const;
  50. void resetFormat();
  51. public slots:
  52. void reset();
  53. void setMinimum(int minimum);
  54. void setMaximum(int maximum);
  55. void setValue(int value);
  56. void setOrientation(Qt::Orientation);
  57. signals:
  58. void valueChanged(int value);
  59. protected:
  60. virtual void initStyleOption(QStyleOptionProgressBar *option) const;
  61. virtual bool event(QEvent *e);
  62. virtual void paintEvent(QPaintEvent *);
  63. };