Results 1 to 2 of 2

Thread: scaling of widgets in verticalLayout

  1. #1
    Join Date
    Mar 2009
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default scaling of widgets in verticalLayout

    Hello,

    i have a QMainWindow with a QVBoxLayout and added QwtPlot and QPlainTextEdit.

    at the moment both the QwtPlot and QPlainTextEdit have the same size...

    how can i make QwtPlot larger than the QwtPlot?

    i tried to play with the stretch factor... but this did not change the layout of the widgets... any idea what im doing wrong?
    Qt Code:
    1. ui->verticalLayout->setStretchFactor(ui->plainTextEdit, 1);
    2. ui->verticalLayout->setStretchFactor(plot, 2);
    To copy to clipboard, switch view to plain text mode 

    Thanks,
    A

  2. #2
    Join Date
    Mar 2009
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: scaling of widgets in verticalLayout

    already solved with:
    ui->gridLayout->setRowStretch(0, 1);
    ui->gridLayout->setRowStretch(1, 3);

Similar Threads

  1. Replies: 5
    Last Post: 10th October 2012, 21:05
  2. QGridLayout scaling widgets
    By Markus_AC in forum Qt Programming
    Replies: 0
    Last Post: 24th November 2011, 10:37
  3. Zooming effect by scaling widgets
    By Cruz in forum Qt Programming
    Replies: 3
    Last Post: 1st February 2009, 09:43
  4. Scaling
    By AD in forum Qt Programming
    Replies: 16
    Last Post: 11th July 2008, 10:55
  5. Scaling Painter without scaling the coordinate sytem
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 7th January 2008, 21:30

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.