Skip to content

Commit e614348

Browse files
Always import qt library before importing qasync in examples. (#129)
Co-authored-by: Alex March <hosaka@users.noreply.github.com>
1 parent 89e857d commit e614348

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/qml_httpx/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import asyncio
33
from pathlib import Path
44

5-
from qasync import QEventLoop, QApplication
65
from PySide6.QtCore import QUrl
76
from PySide6.QtQml import QQmlApplicationEngine, qmlRegisterType
7+
from qasync import QEventLoop, QApplication
88

99
from service import ExampleService
1010

examples/qml_httpx/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import httpx
22

3-
from qasync import asyncSlot
43
from PySide6.QtCore import QObject, Signal, Property, Slot
4+
from qasync import asyncSlot
55

66

77
class ExampleService(QObject):

0 commit comments

Comments
 (0)