I inherit class from QwtScaleDraw to show date-time axis:
Code:
In main file I use it as:
I want to see the current date-time by default when I run the app. Is it possible? Now it displays as 1970.01.00 00:00:00 with an appropriate scale.
Printable View
I inherit class from QwtScaleDraw to show date-time axis:
Code:
In main file I use it as:
I want to see the current date-time by default when I run the app. Is it possible? Now it displays as 1970.01.00 00:00:00 with an appropriate scale.
Yes this is the null date ( 0 ms from Epoch ). I recommend to use the QwtDate classes - see http://qwt.sourceforge.net/class_qwt_date.html#details.
Uwe