Results 1 to 3 of 3

Thread: How to adjust QWebView size within a form?

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Default How to adjust QWebView size within a form?

    Hi,

    In my application, the main window is a form with a Qwebview inside. The Qwebview almost occupy the whole. If user resize the form, I hope the QWebview can adjust its size accordingly in vertical direction and don't change its size in horizontal direction.

    Please help!

    Thank you!

    Richard

  2. #2
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: How to adjust QWebView size within a form?

    Hello,

    play with this methods:

    Qt Code:
    1. setFixedHeight ( int )
    2. setFixedSize ( const QSize & )
    3. setFixedSize ( int, int )
    4. setFixedWidth ( int )
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to adjust QWebView size within a form?

    QWebView inherits QWidget...
    So all functions of QWidgets are applicable,,, arent they

Similar Threads

  1. Replies: 4
    Last Post: 11th July 2010, 09:47
  2. QGraphicsView and QWebView size question
    By MarkoSan in forum Qt Programming
    Replies: 0
    Last Post: 24th April 2009, 01:25
  3. adjust font size to QLabel-size
    By hunsrus in forum Qt Programming
    Replies: 0
    Last Post: 9th July 2008, 14:33
  4. adjust Font size to a given rect when drawText
    By yartov in forum Qt Programming
    Replies: 5
    Last Post: 14th May 2008, 19:03
  5. Form Size on WinCE
    By manojmka in forum Qt Programming
    Replies: 2
    Last Post: 6th March 2008, 06:04

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.