Results 1 to 2 of 2

Thread: QwtPlot in QSplitter

  1. #1

    Default QwtPlot in QSplitter

    Hello. I have QSplitter and QFrame, containing only one QwtPlot in it. While I'm dragging QSplitter border, QwtPlot area shrinks smoothly, but reaches some size and collapses.

    I want to get shrinking till the end. How can I reach it?

    Thanks.

    QwtPlot:
    Qt Code:
    1. setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
    2. setMinimumSize(0,0);
    3. setBaseSize(0,0);
    4. canvas()->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
    5. canvas()->setMinimumSize(0,0);
    6. canvas()->setBaseSize(0,0);
    To copy to clipboard, switch view to plain text mode 

  2. #2

    Default Re: QwtPlot in QSplitter

    Seems like QwtScaleWidget's minimum width width was the greatest among QwtPlot's child widgets. At least setting scale interval to (0,0) solved the problem

Similar Threads

  1. Replies: 9
    Last Post: 25th October 2012, 19:55
  2. qsplitter
    By marc2050 in forum Newbie
    Replies: 3
    Last Post: 31st May 2011, 16:06
  3. Replies: 6
    Last Post: 14th May 2009, 12:02
  4. New to QSplitter
    By bruccutler in forum Qt Programming
    Replies: 6
    Last Post: 6th September 2007, 16:43
  5. QSplitter
    By Solarity in forum Newbie
    Replies: 2
    Last Post: 10th February 2006, 17:05

Tags for this Thread

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.