Hello Qwt experts!

I've been looking around Qwt docs and source code to see how I could set dates to the x axis of a plot. I am fetching data from a PostgreSQL DB and type of data that would go on the x axis is timestamp w/o time zone. The format is "yyyy-MM-dd hh:mm:ss".

Now, how would you setData so that QwtPlotCurve understands how ot order it chronologically?

Thank you,

P.-S. I don't have any compilable code. I have no idea how to do this. Tell me if you need any precision.