Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Title layout in qCustomPlot



  • I am creating an UI with a lot of plots using qCustomPlots. Everything looks fine except the distance between the title and the plot area when reducing the size of the plots and of the fonts. I get this result:

    2020-04-15.png

    It looks like that distance does not depend by the font size or layout size, but it has a fixed amount of pixels, so with small fonts sizes, the title looks too far.
    I tried reducing it with :

    ui.plot->plotLayout()->setRowSpacing(0);
    ui.plot->plotLayout()->setAutoMargins(QCP::msNone);
    

    but they don't achieve the wanted result.
    Can you help me?


  • Lifetime Qt Champion

    Hi,

    That's a question you should rather bring to the authors of QCustomPlot.


Log in to reply