-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[问题]QtabWidget 是否与Qwidget相冲突? #62
Comments
抱歉忘记添加题目了 |
QTabWidget没有这个问题啊,具体看下你代码里怎么切换tab的 |
https://github.com/HXChow/project Setup.py 里面的59-50行,138-152行 |
单独测试MainUI.py 在最底部添加代码,运行MainUI.py测试切换没有出现问题, 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_()) |
你把代码单独放到MainUi.py里去测试。并没有发现有异常。甚至可以播放下视频试试 self.player = QMediaPlayer()
self.player.setVideoOutput(self.widget) # 视频播放输出的widget |
单独放进去出现先前的情况 |
你按照上面的先测试简单功能。主要是你的代码依赖太多我没法测试 |
self.player = QMediaPlayer() |
Environment : / 环境
OS: Win10
Python 3.7.2 x64
PyQt5 5.11.3]
弄了一个widget,将其提升为myVideoWidget来播放视频
但是在实际运行时这个控件出了问题
这是在QT designer预览的样子
运行时切换上面红线的tab界面会导致这个控件将其他tab相对应的区域的界面截取下来
效果是这样的
把其他tab的区域截取了下来。就出了这个显示问题,其他功能一切正常
请问该如何解决这个问题,最近问题比较多轻喷,望不吝赐教
The text was updated successfully, but these errors were encountered: