Sat, 19 Mar 2022 19:22:58 +0100
First step in loading the Inventory Suppliers database on the mainscreen. But, it is loaded at program start en not removed when done. Weird programming to get this working.
#include <QDateEdit> class NullDateEdit : public QDateEdit { Q_OBJECT Q_PROPERTY(QDate nullDate READ nullDate WRITE setDate USER true) public: NullDateEdit(const QDate& date, QWidget* parent); NullDateEdit(QWidget* parent); ~NullDateEdit(); QDate nullDate() const; public slots: void clear(); void setDate(const QDate& date); };