Hello,
the compiler gives you a precise error message: there exists no conversion from QString to QDate. In other words: you cannot assign a QString (obtained from your QLineEdit object) to a QDate.
However, there exist static methods for converting a QString to a QDate:
QDate fromString
(const QString & string, Qt
::DateFormat format
= Qt
::TextDate)
QDate fromString(const QString & string, Qt::DateFormat format = Qt::TextDate)
QDate fromString(const QString & string, const QString & format)
To copy to clipboard, switch view to plain text mode
See QDate documentation for more details.
For future posts: Please do not post screen shots with code and compiler error messages. They are hard to read. Use code tags to wrap code snippets and error messages.
Best regards
ars
Bookmarks