Comments (9)
抱歉忘记添加题目了
from pyqt.
QTabWidget没有这个问题啊,具体看下你代码里怎么切换tab的
from pyqt.
QTabWidget没有这个问题啊,具体看下你代码里怎么切换tab的
https://github.com/HXChow/project
Setup.py 里面的59-50行,138-152行
还有 myVideoWidget.py
上面是关于这个播放窗口的代码
from pyqt.
单独测试MainUI.py 在最底部添加代码,运行MainUI.py测试切换没有出现问题,
检查下Setup.py中或者其他功能代码中是否逻辑错误。或者重新添加了widget进去
if __name__ == '__main__':
import sys
from PyQt5.QtWidgets import QApplication
app = QApplication(sys.argv)
widget = QtWidgets.QMainWindow()
w = Ui_MainWindow()
w.setupUi(widget)
widget.show()
sys.exit(app.exec_())
from pyqt.
单独测试MainUI.py 在最底部添加代码,运行MainUI.py测试切换没有出现问题,
检查下Setup.py中或者其他功能代码中是否逻辑错误。或者重新添加了widget进去
if name == 'main':
import sys
from PyQt5.QtWidgets import QApplication
app = QApplication(sys.argv)
widget = QtWidgets.QMainWindow()
w = Ui_MainWindow()
w.setupUi(widget)
widget.show()
sys.exit(app.exec_())
单独测试没问题
self.player.setVideoOutput(self.widget)
把这一条注释掉就不会出现这些问题,但是这又是播放视频的关键代码
涉及到播放代码除了上述的地方外还有一个是将合成后的视频自动在widget上预览的槽函数
图里的Update3就是自动预览的槽函数,但是这也不影响
from pyqt.
你把代码单独放到MainUi.py里去测试。并没有发现有异常。甚至可以播放下视频试试
self.player = QMediaPlayer()
self.player.setVideoOutput(self.widget) # 视频播放输出的widget
from pyqt.
你把代码单独放到MainUi.py里去测试。并没有发现有异常。甚至可以播放下视频试试
self.player = QMediaPlayer()
self.player.setVideoOutput(self.widget) # 视频播放输出的widget
单独放进去出现先前的情况
我在想是不是要用多线程来解决问题,有没有可行性?
from pyqt.
- 这个就不清楚了,一般来说先测试能否正常显示界面:如单独运行MainUI.py
- 在单独把QMediaPlayer加入进去测试播放视频有没有问题
你按照上面的先测试简单功能。主要是你的代码依赖太多我没法测试
from pyqt.
这个就不清楚了,一般来说先测试能否正常显示界面:如单独运行MainUI.py
在单独把QMediaPlayer加入进去测试播放视频有没有问题你按照上面的先测试简单功能。主要是你的代码依赖太多我没法测试
self.player = QMediaPlayer()
self.player.setVideoOutput(self.widget) # 视频播放输出的widget
单独放进去测试加这两行就不能正常显示了
然后再加入播放功能测试,测试结果正常,视频能播放
from pyqt.
Related Issues (20)
- Running PyQT QWebEngineView application using docker without using host display HOT 4
- feature request: give the ability to accept cookie file directly from QWebEngineView HOT 3
- Release of profile requested but WebEnginePage still not deleted. Expect troubles ! HOT 1
- PyQt5 QWebEngineView does NOT print the same thing shows in the browser HOT 1
- [讨论]交流群怎么打不开 HOT 1
- QDialog crashes when dragged across two monitors when resizing is disabled. [讨论] HOT 5
- 无边框窗口在Mac平台时无法最小化 HOT 5
- [QProcessBar-ColourfulProgress执行时,最小化切换后报错]
- Please add support for Apple Silicon HOT 1
- [PyQt5 vs PyQt6 Widget Resize not suit] HOT 9
- [问题] FramelessWindow Bug 无边框窗体Bug HOT 4
- pyqtdeploy demo? HOT 2
- QProcess Demo
- How to implement a shape selection panel for rendering in PyQt5? HOT 8
- PyQt有办法内嵌cocoa的红绿灯组件吗 HOT 4
- How to implement expansion points and the resizing process for shapes on QGraphicsScene? HOT 1
- How do I implement my own custom element for QGraphicsScene? HOT 1
- failed to start because no Qt platform plugin could be initialized HOT 4
- PyQt5 cannot be installed HOT 11
- 关于QTabWidget文件夹中是空的 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyqt.