I have and DateEdit with format 'MM/yyyy', see pic:
1.png
How to get year and month values.
year: 2006
month: 6
thanks for help !
I have and DateEdit with format 'MM/yyyy', see pic:
1.png
How to get year and month values.
year: 2006
month: 6
thanks for help !
Qt Code:
QDateEdit m_date_edit; int year = m_date_edit.date().year(); int month = m_date_edit.date().month();To copy to clipboard, switch view to plain text mode
hohoanganh205 (4th January 2012)
thanks Lesiok, that code work .
Bookmarks