Fix example.

This commit is contained in:
Yeison 2020-12-11 13:42:10 -05:00
parent 1507f314ed
commit 33361f68a6
2 changed files with 19 additions and 1 deletions

View File

@ -22,6 +22,7 @@ elif '--pyqt5' in sys.argv:
from PyQt5 import QtWidgets, uic
from PyQt5.QtCore import QTimer
from PyQt5.QtCore import Qt, QCoreApplication
from PyQt5 import QtWebEngineWidgets
from qt_material import apply_stylesheet, QtStyleSwitcher

View File

@ -479,7 +479,17 @@
<attribute name="label">
<string>Page 1</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_14"/>
<layout class="QGridLayout" name="gridLayout_14">
<item row="0" column="0">
<widget class="QWebEngineView" name="webEngineView">
<property name="url">
<url>
<string>https://www.python.org/</string>
</url>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_3">
<property name="geometry">
@ -1704,6 +1714,13 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
</property>
</action>
</widget>
<customwidgets>
<customwidget>
<class>QWebEngineView</class>
<extends>QWidget</extends>
<header location="global">QtWebEngineWidgets/QWebEngineView</header>
</customwidget>
</customwidgets>
<resources>
<include location="../qt_material/resources/resource.qrc"/>
<include location="../qt_material/resources/resource.qrc"/>