Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Title layout in qCustomPlot
Forum Updated to NodeBB v4.3 + New Features

Title layout in qCustomPlot

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 552 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mattia
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved