Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
在 Qt Creator 中相互公开 QML 组件
我正在使用 Qt Quick 和 PySide2 开发仪表板应用程序 但在 Qt Creator 的设计模式中公开我的 QML 组件时遇到问题 我的文件夹结构如下所示 myapp mycomponents component1 qml co
python
QML
QtQuick2
PySide2
PySide2/QML 填充 Gridview 模型/委托并为其设置动画
我是 QML 的新手 正在寻求以下几点帮助 如何基于 TextField 输入 如 Regex 通过 PySide2 过滤 Gridview 模型中的 QAbstractListModel 数据 标题 如何在鼠标悬停时为 Gridview
python
QML
PySide2
如何检测pyside2中Qwebengine内的按钮点击
我在 pyside2 中编写了一个应用程序 它在 QWebEngine 中打开一个网页 该网页有 2 个按钮 我不明白如何检测 pyside2 应用程序模块中的按钮单击 我需要对该按钮单击执行其他操作 Example 下面是我的代码 fro
python
PySide2
QWebEngineView
qwebenginepage
qtwebchannel
使用 PyInstaller 后,FigureCanvas 未解释为 QtWidget
我从 matplotlib 中对此示例进行了稍微修改的版本 https matplotlib org gallery user interfaces embedding in qt sgskip html https matplotlib
python
matplotlib
PySide2
QWebEngineView 在 Windows 10 上不显示任何内容
我创建了一个可以在 Mac 上完美运行的 Python 应用程序 但我需要能够在 Windows 上运行它 到目前为止 我坚持我的QWebEngineView不显示任何东西 我创建了一小段代码来测试 但到目前为止 它在 Win10 上只显示
python
Windows
MacOS
QT
PySide2
打包应用程序时如何排除不必要的Qt *.so 文件?
使用 PyInstaller 成功打包 PySide 应用程序后 我在包文件夹中发现了许多不同的 so 文件 我很惊讶地看到我在项目中没有使用的库 例如 libQt53DAnimation so libQt53DCore so libQt5
python
pyinstaller
packaging
PySide2
如何在 PySide2 应用程序中嵌入 matplotlib 画布
我正在尝试将 matplotlib 画布嵌入到 PySide2 应用程序中 我尝试使用这个例子 https matplotlib org examples user interfaces embedding in qt5 html http
python
matplotlib
PySide2
为什么我的 QThread 持续使 Maya 崩溃?
我有一个 UI 我想在 Maya 内部使用线程 这样做的原因是这样我可以运行 Maya cmds 而无需挂起 冻结 UI 同时使用进度条等更新 UI 我已经阅读了 StackOverflow 中的一些示例 但我的代码每次运行时都会崩溃 我遵
python
python27
Maya
Qthread
PySide2
使用 PySide2 在 QTableView 中设置文本样式
我有一个 QTableView 填充了正确的模型 我想根据上下文更改文本的样式 文本 如果括号之间有内容 则这部分文本应更改为绿色 包括括号 并且粗体 只要它不难 如果您可以提供一个片段或超级简单的示例 我将不胜感激 您必须使用一个委托来使
python
QTableView
PySide2
带有圆形图像的 QLabel
我想在 PyQt5 PySide2 应用程序中显示圆形图像 下面是我尝试过的代码 self statusWidget QLabel img QImage image jpg scaled 49 49 Qt IgnoreAspectRatio
python
PyQt5
PySide2
Qlabel
Qpixmap
使用 QToolBar 和 QListView 进行面包屑导航
我有类似这样的 JSON 数据 books web front end html the missing manual core html5 canvas css css pocket reference css in depth js y
python
PySide2
QListView
QToolBar
如何在 QtCreator 中分析 PySide2 + QML?
我有一个 PySide2 应用程序 它使用 QML 来显示用户界面 该应用程序通过命令行运行 我还可以启动它并在 QtCreator 中调试它 但是 当我尝试运行 QmlProfiler 时 我看到以下错误 1 error home use
QT
QML
Qt5
QtCreator
PySide2
如何将 __init__ 参数传递给使用 qmlRegisterType 注册的类?
是否可以使用 qmlRegisterType 函数将 init 参数传递给注册到 QML 的 python 类 如果是这样 当在 QML 中实例化类时它们会被传递吗 我已使用 qmlRegisterType 注册了该类 但没有找到将另一个类
python
QML
PySide2
如何使用 QStyledItemDelegate 绘制()
我正在使用 PySide2 但找不到任何有关如何在 QStyledItemDelegate 子类中使用 Paint 函数的文档 我对课程相当陌生 但到目前为止可以理解 但在使用 PySide2 时遇到问题 I would like to r
python
PySide2
QListWidget
qlistwidgetitem
如何使用 VS Code 编辑器在 Python 包 PySide2.QtCore.Qt 模块上实现智能感知/制表符补全?
我对 Python 相当陌生 但已经设置并使用它视觉工作室代码 https code visualstudio com 注 这是not与 Visual Studio 相同 我正在使用 PySide2 包完成 Qt for Python 的
python
VisualStudioCode
PySide2
在 PySide6 中使用 GraphicalEffects
我正在使用 PySide6 并尝试使用 GraphicalEffects 模块 根据此处的文档 https doc qt io qt 6 qtgraphicaleffects5 index html https doc qt io qt 6
QT
QML
PySide2
PySide6
qt6
Qtwidgets 的问题
我刚刚学习如何使用 Qtdesigner 和 Pycharm 创建 GUI 所以我构建了一个非常简单的 GUI 有两个底部和一个标签 在 pycharm 中编译 ui 文件并编写以下代码来执行它后 from PySide2 import Q
python
PyQt5
QtDesigner
PySide2
如何使用 PySide2 连接 Python 和 QML?
我想在 Ubuntu 上编写一个简单的桌面应用程序 我认为一个简单的方法是使用 Qt 和 QML 作为 GUI 使用 Python 作为逻辑语言 因为我对 Python 有点熟悉 现在我花了几个小时尝试以某种方式连接 GUI 和逻辑 但它不
python
QT
QML
PySide2
无法在 github 操作中创建(python)QApplication
我为我的 python Qt gui 进行了一些单元测试 它需要 QApplication 实例 但是创建一个测试对我来说总是失败 即以核心转储和应用程序中止结束 QApplication 到目前为止我尝试过的是 creation meth
python
PyQt5
PySide2
githubactions
pytestqt
使用 PySide2 在 QML 中注册类型
我正在尝试使用 Python 创建新的 QML 类型 但在注册 QML 类型时遇到问题 但是 我收到错误 TypeError PySide2 QtQml qmlRegisterType called with wrong argument
python
python3x
QML
PySide2
1
2
3
»