lang/pysideex/ BarebonesApplication1
In order to get an empty application up, we need to import a few class from the Qt modules.
Here we'll import far more than we need to so that we can see the various options.
It makes sense, when experimenting, to from QtGui import *
and so on.
Wildcard Import
from PySide6.QtWidgets import *
from PySide6.QtCore import *
from PySide6.QtGui import *
from PySide6.QtNetwork import *
Example Import
This is taken from the udp-enabled painter example.
from PySide6.QtWidgets import (
QWidget,
QMainWindow,
QApplication,
)
from PySide6.QtCore import (
QPoint,
QRect,
Qt,
QDir,
Slot,
QTimer,
QStandardPaths,
)
from PySide6.QtGui import (
QMouseEvent,
QPaintEvent,
QPen,
QBrush,
QPainter,
QPainterPath,
QColor,
QPixmap,
)