Incomplete QWebView and qtqwebview of QT

Source: Internet
Author: User

Incomplete QWebView and qtqwebview of QT

Recently, a problem occurred when using the QWebView control, that is, no matter how big the window is, the page is displayed as big as it is, and the display is incomplete and has a scroll bar.

I tried to use the showMaximized () method. It is still the same. I have always said that it is a layout problem on the internet, and I did not know it is a problem with the Xiami layout. I can only find it on my own.

When you read the code, you accidentally see

View = new QWebView (ui-> webView );

So I thought, ui-> webView is also QWebView. Why do we need new? With a try, change

View = ui-> webView;

As a result, it's really okay. In addition, you can change back to view = new QWebView (ui-> webView) later. There is no such problem. It is estimated that QT has been optimized.

 

If you have such a problem, you must learn how to put it apart !!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.