绘制带阴影效果的矩形——<qdrawutil.h> Drawing Utility Functions
qDrawShadeLine(QPainter *painter, const QRect &rect, const QPalette& palette, bool sunken = true, int lineWidth = 1, int midLineWidth = 0);
qDrawShadePanel(QPainter *painter, const QRect &rect, const QPalette &palette, bool sunken = false, int lineWidth = 1, const QBrush *fill = nullptr);
qDrawShadeRect(QPainter *painter, const QRect &rect, const QPalette &palette, bool sunken = false, int lineWidth = 1, const QBrush *fill = nullptr);
左:sunken=0,右:sunken=1
QPainter:绘制其他的各种图形
qdrawutil.h与QPainter都需要在PaintEvent(QPaintEvent* e)中使用。 。。。待续