I have gone through the various post similar post which are having similar problems, tried out the answers also but it didn’t worked for me. So here is my problem – I have two windows – TestBox and MailBox, when i click on the TestBox Pushbutton along with Input Path argument, it has to open the MailBox Window, This new
Tag: pyqt5
Creating a non-overlapping QVideoPlayer and PlotWidget in PyQt5
I am trying to create an app in PyQt5 that has a media (video) player, a graph, and a few buttons. Currently, whenever I try to add the video and graph widgets, they compete for space (lay on top of one another), even when using QGridLayout. Here is the entire file so far. The important parts are under ‘Create video
Can’t Download PyQt5 on Python
I’m using Pycharm and when i try to download pyqt5 package, I’m getting an error like this. What could be the problem ? Answer You have to upgrade pip and then install pyqt5:
Move pyqt button out of list of buttons
I have a list of pyqt4 push button and want to move the position. Since it is troublesome it make lots of buttons variable I create them through a list. The code below don’t work for specify the position but works fine. What’s the reason behind? Answer If you want to manually specify the geometry (position and size) of widgets,
Create Splash screen in PyQt5
I want to create a splash screen in PyQt5 using Python. I searched but I found in Pyqt4 and I have no understanding of PyQt4 so help me in this case I would be gratful Splash screen in pyqt Answer Try it: Example 2
How to play videos in pyqt
I want to play video files depending the select file in this function: My Question is what opcion i have to use or what module to play video files in pyqt EDIT: To play the code of S. Nick I hace to install K lite code Answer Try it:
Scrollbars Do Not Appear in PyQt5 Custom Label
A few months ago I wanted to know how to draw on an image (Insert Image into QGridLayout and Draw on top of image in PyQt5). Eyllanesc very kindly gave me a complete solution. I now would like to have this image widget scrollable so I can enlarge it. Howerver, when I add a scroll area the scrollbars do not
My PyQt application not works with error – This application failed to start because no Qt platform
I developed a Python program using PyQt5 in Windows 10, and it works very well. Then i made it into .exe file with pyinstaller, but it failed and gave me an error. I searched for similar problems in here and google, but i couldn’t find the same problem – running .py works well but .exe failed. Followings are what i
Python PyQt5 QTreeView set row Background Colour
I am trying to set the background colour (color) for a) a whole QTreeView, and b) for specific rows in a QTreeView within Python. I have found setColor and setBackgroundColor methods, but neither seem to work for me with QTreeView nor QStandardItem. Lots of googling shows many conversations about it, but I have not been able to relate those to
How to crop an image using QPainterPath without saving rest of image
I have a QPainterPath and I want to crop an image which is QPixmap. This code worked for me but I want to use PyQt5 builtin functionality like mask without numpy Answer One possible way to replace mask is to use the setClipPath() method of QPainter: