I have to show all x axis values in my plot.

    ui->dateTimePlot->addGraph();
    ui->dateTimePlot->graph()->data()->set(timeData);

    // configure bottom axis to show date instead of number:
    QSharedPointer<QCPAxisTickerDateTime> dateTicker(new QCPAxisTickerDateTime);
    dateTicker->setDateTimeFormat("d/M/yyyy h:m:s");
    dateTicker->setTickStepStrategy(QCPAxisTicker::TickStepStrategy::tssMeetTickCount);

    // x axis
    ui->dateTimePlot->xAxis->setTicker(dateTicker);
    ui->dateTimePlot->xAxis->setTickLabelRotation(60);
    ui->dateTimePlot->xAxis->setTickLabels(true);
    QDateTime from = QDateTime::fromString(listCounters.first()->getDate() + " " + listCounters.first()->getTime(), "d/M/yyyy h:m:s");
    QDateTime to = QDateTime::fromString(listCounters.last()->getDate() + " " + listCounters.last()->getTime(), "d/M/yyyy h:m:s");
    ui->dateTimePlot->xAxis->setRange(from.toSecsSinceEpoch(), to.toSecsSinceEpoch());

    // y axis
    ui->dateTimePlot->yAxis->setRange(0, 300);

the problem is that my plot doesn't show the dates of every point on x axis. How can I fix it?