Results 1 to 3 of 3

Thread: Why does QWebView sizeHint() return a fixed value?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    132
    Thanks
    23
    Thanked 3 Times in 3 Posts

    Default Why does QWebView sizeHint() return a fixed value?

    Hi

    I'm wondering what the reason is that QWebView::sizeHint() is implemented to return a fixed value:

    Qt Code:
    1. QSize QWebView::sizeHint() const
    2. {
    3. return QSize(800, 600); // ####...
    4. }
    To copy to clipboard, switch view to plain text mode 

    It makes putting it into a layout pretty useless. On that point, is there a recommended way to let QWebView respect a layout? I've reimplemented the resizeEvent() and got it working, but why is it needed?

    Thanks for any comments.
    Jaco
    Last edited by JPNaude; 4th January 2011 at 09:43.

Similar Threads

  1. Replies: 8
    Last Post: 3rd September 2013, 09:51
  2. How to reimplement sizeHint()?
    By Septi in forum Qt Programming
    Replies: 0
    Last Post: 6th July 2010, 13:07
  3. sizeHint()
    By sm in forum Newbie
    Replies: 11
    Last Post: 22nd January 2008, 03:59
  4. sizeHint
    By eric in forum Newbie
    Replies: 1
    Last Post: 8th January 2008, 16:18
  5. invalid sizeHint()
    By roleroz in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2006, 22:11

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
  •  
Qt is a trademark of The Qt Company.