Skip to content
Advertisement

Tag: pyqt5

Multiple context menu in a single qTableView pyqt5

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

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

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

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:

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

Advertisement