Skip to content
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

PyQt -> PySide convertion #22

Open
Oh-JongJin opened this issue Mar 11, 2022 · 2 comments
Open

PyQt -> PySide convertion #22

Oh-JongJin opened this issue Mar 11, 2022 · 2 comments
Assignees
Labels
infomation Information you need to know

Comments

@Oh-JongJin
Copy link
Contributor

PyQt: GPL(General Public License)

  • License for an open source program
  • It is obligated to disclose the source code
  • If want to use it outside the scope of GPL, must purchase separate license. (annual subscription fee of $3,950)

PySide: LGPL(Lesser General Public License)

  • Even if use program commercially, don't have to disclose source code.
  • In addition, there is no separate payment.
  • Therefore, PySide is used when developing for commercial purposes.
@Oh-JongJin Oh-JongJin added the infomation Information you need to know label Mar 11, 2022
@Oh-JongJin Oh-JongJin self-assigned this Mar 11, 2022
@Oh-JongJin
Copy link
Contributor Author

Oh-JongJin commented Mar 11, 2022

Setup Ui error

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.

@Oh-JongJin
Copy link
Contributor Author

An error that occurs when the program is terminated

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infomation Information you need to know
Projects
None yet
Development

No branches or pull requests

1 participant