Commit Graph

10 Commits

Author SHA1 Message Date
xmuli
17dc1f5d42 feat: The custom control MySwitchButton has been implemented 2020-03-28 17:33:20 +08:00
muli
1de27374cc feat: The custom control MySwitchButton has been implemented 2020-02-24 09:23:48 +08:00
muli
787a6061a8 feat: Improve MyStyle, MyStyleHelp, MyStylePainter (mostly written, but not over) 2020-02-22 12:43:23 +08:00
muli
77115da29d feat: Repaint the skin of a custom control, and the painting is complete
MyStyle has completed, QStylePainter's inheritance rewrite has not yet started
2020-02-20 00:47:18 +08:00
muli
158deb7c80 feat: adds multiple virtual functions inherited from QCommonStyle
public:
    virtual void polish(QWidget *widget) override;
    virtual void unpolish(QWidget *widget) override;
    virtual void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w) const override;
    virtual void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w) const override;
    virtual QRect subElementRect(SubElement subElement, const QStyleOption *option, const QWidget *widget) const override;
    virtual void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget) const override;
    virtual QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget) const override;
    virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const override;
    virtual QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *w) const override;
    virtual int styleHint(StyleHint stylehint, const QStyleOption *opt, const QWidget *widget, QStyleHintReturn *returnData) const override;
2020-02-19 19:39:03 +08:00
muli
90dd4cdf25 feat: Overriding the GUI's QScroll control skin 2020-02-16 16:15:24 +08:00
muli
86e350df4c feat: Create class MyStyle: public QCommonStyle; and most of its overloaded virtual functions (prepared) 2020-02-16 15:58:25 +08:00
muli
5ab1057a74 docs:Add an open source license to the project: LICENSE-2.0 2020-02-16 14:27:06 +08:00
muli
29359f64b6 feat: Display several styles of the operating system through QStyleFactory 2020-02-14 00:09:27 +08:00
touwoyimuli
af5ee36cb5 📝 doc: Add some articles 2020-02-07 18:33:00 +08:00