i added two functions in two different pushButtons. for both function i used a common qtableView. i created two contextmenu, whenever user clicked pushButton1 func1 is called and result set will be shown in qtableView and user can select items from contextmenu1 and same like pushButton2 ,where contextMenu2 will appear . but in my code context menu is not showing
Tag: pyqt5
How to re Open my closed subwindow in PyQt5 QStackWidget?
Add My second File In QStackwidget. After pressing the “close” Button from the second file, I can’t able to reopen it. How to reopen the second file? How to refresh the code? How to close the second/Subwindow file properly and re-open the same from the first file. or If we close the second file, How to refresh the first file
I have a small problem with PyQt5 WebEngineView and html of url: “https://www.remove.bg”
I have Enabled downloads in pyqtwebengineview and it works well. However,I have some problems with the site:”https://www.remove.bg” So I downloaded The html content of that site and the problem is an anchor tag. If I simply remove this target atrribute,It works well. This works difference is just target atrribute.What to do. How to make this site work correctly. Answer The
How do I run a video in a PyQt container?
In the QVideoWidget container on PyQt, you need to start a video from the computer, on which objects are to be searched through TensorFlow (openCV, cv2). The problem is that when the button is pressed, the video only shows one frame and nothing else. What could be the problem? Made in PyCharm, Python 3.7. Answer All problem is because you
Dynamically created QImage frames to ffmpeg stdin using QThread
I am trying to create video files with ffmpeg using frames dynamically created on a separate thread. While I can create those frames and store them on disk/memory, I’d like to avoid that passage since the amount/size of the frames can be high and many “jobs” could be created with different format or options. But, also importantly, I’d like to
Combining a file dialog with buttons in PyQt
I’m struggling with making the transition from Tkinter to the more object-oriented approach of PyQt. My particular question focuses on combining file dialogs with buttons. In the example below, having lines of code I admittedly don’t completely understand, I use a file dialog to load a time series, stored as a .csv file, into a dataframe and then plot it:
How to add QAction to QLineEdit in pyqt5?
I am making an application in pyqt5 in which I have to add QAction to QLineEdit. I have tried many times but failed. This is what I want Please help me. Thank you in advance Answer Here is a very basic example:
is there any way to pass existing label to another class to make it blink
I have some labels which I want to make them blink in some cases, and stop blinking with specific color for their styleSheet on other cases. I have seen this useful answer, and adapted this part from the answer: I have created some labels on my main window with specific geometry and etc like: My Question is: How can I
Passing a function to a Worker (QObject) class in Python GUI application to prevent freezing/blocking
I am trying to find a way to successfully pass a function to a Worker class in Python using PyQT5. Instead of using the pre-defined run function (or Long-running task) in the sample Worker class code, I would like to be able to pass a custom function to the worker class. Below I’ve pasted the sample code I’m working with,
QScrollArea: Scroll from item to item
Please consider the following code: Currently, the margins of the layout are dynamically set, so that, no matter the size of the window, the first and last item are always vertically centered: What I want to achieve now is that whenever I scroll (either by mousewheel or with the arrow-keys, as the scrollbars are disabled) the next widget should take