Results 1 to 2 of 2

Thread: Seting the size of plot

  1. #1
    Join Date
    Mar 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Seting the size of plot

    I want to set the size of the plot to the same as the parent, how is that done? At the moment it is just a square in the corner.
    I do not use the plugins, I havent got the working, I set the QWTPlot to a widget in the constructor.

    QwtPlot *myPlot = new QwtPlot(QwtText("a Curves"),ui->widget);

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,313
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Seting the size of plot

    Add a layout to the parent, that manages the size of the plot or implement its resizeEvent and do it manually.
    This is a question for the Newbie forum and has nothing to do with Qwt.

    Uwe

Similar Threads

  1. Replies: 6
    Last Post: 4th December 2020, 23:11
  2. Put plot axis out of the plot
    By KosyakOFF in forum Qwt
    Replies: 7
    Last Post: 21st June 2013, 13:36
  3. Replies: 0
    Last Post: 7th January 2010, 22:03
  4. seting cenral widget
    By bhogasena in forum Qt Programming
    Replies: 1
    Last Post: 30th January 2009, 15:55
  5. Replies: 7
    Last Post: 22nd September 2008, 22:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.