Fading Coder

One Final Commit for the Last Sprint

Managing QWidget Geometry and Properties through Qt Slots

Header Definition (windowcontroller.h) The WindowController class inherits from QWidget and declares explicit slot functions for handlign window properties, avoiding the default on_objectName_signal naming convention. #ifndef WINDOWCONTROLLER_H #define WINDOWCONTROLLER_H #include <QWidget> QT_...

Drawing a Chinese Chess Board by Overriding QWidget's paintEvent Method in Qt

Header File #ifndef CHESSBOARDWIDGET_H #define CHESSBOARDWIDGET_H #include <QWidget> #include <QPainter> QT_BEGIN_NAMESPACE namespace Ui { class ChessBoardWidget; } QT_END_NAMESPACE class ChessBoardWidget : public QWidget { Q_OBJECT public: explicit ChessBoardWidget(QWidget *parent = nul...

Qt Custom Widget: Draggable Progress Ruler (QWidget + QPainter)

Qt Custom Widget: Draggable Progress Ruler (QWidget + QPainter) A QWidget-based progress indicator that combines a filled progress track with a graduated ruler. The scale can be rendered on the top or bottom edge, supports click/drag positioning, integer or fractional labels, negative ranges, and op...