QCustomPlot Discussion and Comments

xAxis2 ticks labels are not visible no matter whatReturn to overview

    m_CustomPlot->xAxis2->setVisible(true);
    m_CustomPlot->xAxis2->setTickLabels(true);
    m_CustomPlot->xAxis2->setTicks(false);
    m_CustomPlot->xAxis2->setLabel("Layers");
    auto x2pen = makePen(QColor(230, 230, 230));
    m_CustomPlot->xAxis2->setRange(0, 10);
    m_CustomPlot->xAxis2->setBasePen(x2pen);
    m_CustomPlot->xAxis2->setTickPen(x2pen);
    m_CustomPlot->xAxis2->setSubTickPen(x2pen);
    m_CustomPlot->xAxis2->setTicker(QSharedPointer<QCPAxisTickerPi>(new QCPAxisTickerPi));
    m_CustomPlot->xAxis2->setLabelColor(QColor("#ffffff"));
    m_CustomPlot->xAxis2->setLabelFont(labelFont);
    m_CustomPlot->xAxis2->ticker()->setTickCount(10);
    m_CustomPlot->xAxis2->ticker()->setTickStepStrategy(QCPAxisTicker::TickStepStrategy::tssReadability);
    m_CustomPlot->xAxis2->setTickLabelFont(labelFont);

This code in constructor of my class. But freakin xaxis2 does not showing own labels. why? I called everything but it has no effect. main axis is OK, but x2 is not......

tick labels*