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 !!