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. How to resize multi Qwt plots so that they can automatically fit in main window?
QtWS25 Last Chance

How to resize multi Qwt plots so that they can automatically fit in main window?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views
  • 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.
  • K Offline
    K Offline
    Kale Lou
    wrote on last edited by
    #1

    Hello,

    I am implementing a multi channel plots window by using Qt and Qwt. I actually worked on one example from Qwt download package, which is "plotmatrix". Now I have one problem.

    The original example shows a mainwindow which has 3 X 4 plots. If I change the configuration to let it plot 5 X 4 plots or 5 X 1 plots, the whole plotting window will become larger than my desktop, and I can not resize it to adjust the Y- dimension size.

    One line of code "mainWindow.resize(800, 600);" looks like the method for controlling the window size, but even if I put a pair of very small input values, the display is still very large.

    Can anyone give my any advice?

    1 Reply Last reply
    0

    • Login

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