Open Oh-JongJin opened 2 years ago
from PySide6.QtGui import QPixmap, QIcon, QPainter
from PySide6.QtWidgets import QMainWindow, QWidget, QFrame, QVBoxLayout
from PySide6.QtCore import Qt. Slot, Signal, QRect, QTimer, QObject, QThread, QPointF, QDateTime, QFile
from PySide6.QtCharts import QChartView, QValueAxis, QChart, QDateTimeAxis
from PySide6.QtUiTools import QUiLoader
...
from ui_main_window import MainWindow
class JS08MainWindow(QMainWindow):
def __init__(self, q, parent=None):
super(JS08MainWindow, self).__init__(parent)
self.ui = MainWindow()
self.ui.setupUi(self)
...
In PySide6, Ui file is converted into python code and used. Ui files can be set up, but internal widgets are not accessed.
QThread: Destroyed while thread is still running.
It is an error that does not occur in the existing PyQt, but occurs in PySide.
The function currently using Qthread is Consumer
.
PyQt: GPL(General Public License)
PySide: LGPL(Lesser General Public License)