本文整理汇总了Python中PySide2.QtCore.qVersion方法的典型用法代码示例。如果您正苦于以下问题:Python QtCore.qVersion方法的具体用法?Python QtCore.qVersion怎么用?Python QtCore.qVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PySide2.QtCore
的用法示例。
在下文中一共展示了QtCore.qVersion方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _pyside
# 需要导入模块: from PySide2 import QtCore [as 别名]
# 或者: from PySide2.QtCore import qVersion [as 别名]
def _pyside():
from PySide import (
QtGui,
QtCore,
QtNetwork,
QtXml,
QtHelp,
QtUiTools,
__version__
)
QtWidgets = QtGui
Qt.__binding__ = "PySide"
Qt.__qt_version__ = QtCore.qVersion()
Qt.__binding_version__ = __version__
QtCompat.load_ui = lambda fname: QtUiTools.QUiLoader().load(fname)
QtCompat.setSectionResizeMode = QtGui.QHeaderView.setResizeMode
QtCompat.translate = (
lambda context, sourceText, disambiguation, n:
QtCore.QCoreApplication.translate(context,
sourceText,
disambiguation,
QtCore.QCoreApplication.CodecForTr,
n))
return QtCore, QtGui, QtWidgets, QtNetwork, QtXml, QtHelp
示例2: _pyside2
# 需要导入模块: from PySide2 import QtCore [as 别名]
# 或者: from PySide2.QtCore import qVersion [as 别名]
def _pyside2():
from PySide2 import (
QtWidgets,
QtGui,
QtCore,
QtNetwork,
QtXml,
QtHelp,
QtUiTools,
__version__
)
Qt.__binding__ = "PySide2"
Qt.__qt_version__ = QtCore.qVersion()
Qt.__binding_version__ = __version__
QtCompat.load_ui = lambda fname: QtUiTools.QUiLoader().load(fname)
QtCompat.setSectionResizeMode = QtWidgets.QHeaderView.setSectionResizeMode
QtCompat.translate = QtCore.QCoreApplication.translate
return QtCore, QtGui, QtWidgets, QtNetwork, QtXml, QtHelp