pyside2

pyside2 installation problem on ubuntu18.04, python 3.8.3 on anaconda

耗尽温柔 提交于 2021-01-20 07:56:40
问题 After installing anaconda3, I began to install pyside2. I directly typed pip install pyside2 , and successfully installed pyside2 5.15. But when I ran the toy example, an error occurred: Traceback (most recent call last): File "test.py", line 2, in <module> from PySide2.QtWidgets import QApplication, QLabel ImportError: /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2: symbol krb5_ser_context_init version krb5_3_MIT not defined in file libkrb5.so.3 with link time reference I when to /usr/lib/x86

pyside2 installation problem on ubuntu18.04, python 3.8.3 on anaconda

吃可爱长大的小学妹 提交于 2021-01-20 07:56:24
问题 After installing anaconda3, I began to install pyside2. I directly typed pip install pyside2 , and successfully installed pyside2 5.15. But when I ran the toy example, an error occurred: Traceback (most recent call last): File "test.py", line 2, in <module> from PySide2.QtWidgets import QApplication, QLabel ImportError: /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2: symbol krb5_ser_context_init version krb5_3_MIT not defined in file libkrb5.so.3 with link time reference I when to /usr/lib/x86

Cannot set header data with QTableView / custom table model

时间秒杀一切 提交于 2021-01-07 01:01:54
问题 I am on Maya / PySide2 / Python 2.7 I cannot set the header data with a custom table model. I tried this: from PySide2 import QtCore, QtGui, QtWidgets from PySide2.QtCore import Qt class TableModel(QtCore.QAbstractTableModel): def __init__(self, data): super(TableModel, self).__init__() self.setHeaderData(0, Qt.Horizontal, "Driver") self.setHeaderData(1, Qt.Horizontal, "Range") self.setHeaderData(2, Qt.Horizontal, "Driven") self.setHeaderData(3, Qt.Horizontal, "Range") self._data = data def

Cannot set header data with QTableView / custom table model

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-07 00:58:25
问题 I am on Maya / PySide2 / Python 2.7 I cannot set the header data with a custom table model. I tried this: from PySide2 import QtCore, QtGui, QtWidgets from PySide2.QtCore import Qt class TableModel(QtCore.QAbstractTableModel): def __init__(self, data): super(TableModel, self).__init__() self.setHeaderData(0, Qt.Horizontal, "Driver") self.setHeaderData(1, Qt.Horizontal, "Range") self.setHeaderData(2, Qt.Horizontal, "Driven") self.setHeaderData(3, Qt.Horizontal, "Range") self._data = data def

Unable to load QMYSQL Driver on PySide2

柔情痞子 提交于 2020-12-27 06:09:34
问题 How can i install and load the Qmysql driver using Pyside2 (pip) with python3.8? I've already tried to download git:qtbase and compiled the driver from there but I had any luck. 回答1: This answer covers not only the installation for Linux but for the other OS, besides that it also applies for pyqt5 The binaries used by Qt are the same ones used by PyQt5/PySide2 since they use the same base code so you will have to compile the plugins. In this case, to compile the mysql plugin you must follow

Unable to load QMYSQL Driver on PySide2

天涯浪子 提交于 2020-12-27 06:07:01
问题 How can i install and load the Qmysql driver using Pyside2 (pip) with python3.8? I've already tried to download git:qtbase and compiled the driver from there but I had any luck. 回答1: This answer covers not only the installation for Linux but for the other OS, besides that it also applies for pyqt5 The binaries used by Qt are the same ones used by PyQt5/PySide2 since they use the same base code so you will have to compile the plugins. In this case, to compile the mysql plugin you must follow

Unable to load QMYSQL Driver on PySide2

六眼飞鱼酱① 提交于 2020-12-27 06:06:16
问题 How can i install and load the Qmysql driver using Pyside2 (pip) with python3.8? I've already tried to download git:qtbase and compiled the driver from there but I had any luck. 回答1: This answer covers not only the installation for Linux but for the other OS, besides that it also applies for pyqt5 The binaries used by Qt are the same ones used by PyQt5/PySide2 since they use the same base code so you will have to compile the plugins. In this case, to compile the mysql plugin you must follow

Unable to load QMYSQL Driver on PySide2

ぐ巨炮叔叔 提交于 2020-12-26 08:43:18
问题 How can i install and load the Qmysql driver using Pyside2 (pip) with python3.8? I've already tried to download git:qtbase and compiled the driver from there but I had any luck. 回答1: This answer covers not only the installation for Linux but for the other OS, besides that it also applies for pyqt5 The binaries used by Qt are the same ones used by PyQt5/PySide2 since they use the same base code so you will have to compile the plugins. In this case, to compile the mysql plugin you must follow

Importing QML from a Resource (QRC) file with PySide2

我怕爱的太早我们不能终老 提交于 2020-12-13 03:12:17
问题 I have added a simple QML component ("qml/MyButton") to my "resource.qrc" file: <RCC> <qresource prefix="/"> <file>qml/MyButton.qml</file> </qresource> </RCC> I then compiled the QRC to a python module with: pyside2-rcc -o resource.py resource.qrc Then I imported resource.py in main.py: import sys import os from PySide2.QtGui import QGuiApplication from PySide2.QtQml import QQmlApplicationEngine import resource if __name__ == "__main__": app = QGuiApplication(sys.argv) engine =

QDateTimeAxis() - series are not displayed

倖福魔咒の 提交于 2020-12-04 05:27:35
问题 I am building application which includes QCharts. Everything was working until I changed Value Axis to the DateTime axis. Now I don't see any series on the chart. I was trying methods which was provided in other topics on stack overflow but without success. I was trying as it was suggested in other topics to change datetime to msec since epoch when I am setting range of x axe - unfortunately with this method on x axe I see epoch time not current time. When I am setting range like now I see