Skip to content

Always import qt library before importing qasync for examples. #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ If you need some CPU-intensive tasks to be executed in parallel, `qasync` also g
import sys
import asyncio

from qasync import QEventLoop, QApplication
from PySide6.QtWidgets import QWidget, QVBoxLayout
from qasync import QEventLoop, QApplication

class MainWindow(QWidget):
def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion examples/qml_httpx/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import asyncio
from pathlib import Path

from qasync import QEventLoop, QApplication
from PySide6.QtCore import QUrl
from PySide6.QtQml import QQmlApplicationEngine, qmlRegisterType
from qasync import QEventLoop, QApplication

from service import ExampleService

Expand Down
2 changes: 1 addition & 1 deletion examples/qml_httpx/service.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import httpx

from qasync import asyncSlot
from PySide6.QtCore import QObject, Signal, Property, Slot
from qasync import asyncSlot


class ExampleService(QObject):
Expand Down