QtCore.py:
Code: Select all
from PySide2.QtCore import *
QCoreApplication.CodecForTr=0
QCoreApplication.UnicodeUTF8=1
Code: Select all
from PySide2.QtGui import *
from PySide2.QtWidgets import *
Code: Select all
from PySide2.QtSvg import *
Code: Select all
from PySide2.QtCore import *
QCoreApplication.CodecForTr=0
QCoreApplication.UnicodeUTF8=1
Code: Select all
from PySide2.QtGui import *
from PySide2.QtWidgets import *
Code: Select all
from PySide2.QtSvg import *
I use QTableWidget (the same applies for widgets like QTreeWidget) in one of my FreeCAD related modules and have set the resize mode for header. This i guess i will have to tackle myself in the future. Not a big problem but some heads up as likely sooner or later this issue will emerge in one of the default FreeCAD modules.setResizeMode was renamed setSectionResizeMode in Qt 5.
Does the same apply for us?Compile Qt Designer files
.ui files compiled via pyside2-uic inherently contain traces of PySide2 - e.g. the line from PySide2 import QtGui.
In order to use these with Qt.py, or any other binding, one must first erase such traces and replace them with cross-compatible code.
Code: Select all
issue #2968