Category "pyqt5"

Simulate the click on a button in the PyQt5 QMessageBox widget, during unittest CI

Rather than a long speech, if we run the minimum example below: $ python3 Python 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)]

Embedd selenium browser in pyqt5 application

from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager from selenium.webd

Error when browsing google earth using homemade browser

I used Python+pyqt+QWebEngineView to write a simple browser, but when I browse google earth, it shows Aw snap!, what is the reason? How can I improve it? I use

PyQt5 draggable frameless window

I found an example to set borders on a frameless window, however it's not draggable. How can I make a frameless window draggable? Especially if I can see an ex

Python PyQT5 WebEngine Segmentation fault Error

I wanted to create an app to download ms store app, it ran fine untill today now when i try to open the site (https://apps.microsoft.com/) pyqt5 window crashes

How to click on QMessageBox with pytest-qt?

I am creating some unit tests for a PyQt application with pytest-qt. And I would like to create open the graphical window, do some tests then close the window,

Show MyComputer in PyQt5 Tree View

I have coded out a small application using PyQt5 . The application gives a tree view of all folders in the computer : import sys from PyQt5.QtWidgets import

pyqtgraph axes not displaying correctly

I recently started working with PyQt5 after updating pyqt from PyQt4 to PyQt5, and have noticed a persistent error in the axis location of all plots produced wi

python add another same textedit and button

I want to make that, when I press the plus, another same form is made. The second form appeared but the first form was lost I need help when I keep the first on

QLabel with image in round shape

I want to display image with round shape in PyQt5/PySide2 application. Below is the code i tried. self.statusWidget = QLabel() img = QImage(":/image.jpg").scale

pyqt5 : don't show empty folders after filtering files with a setNameFilters

Using a QTreeView and a QListView, I want to show only usable files for a certain software. the QTreeview shows folders only and QListView show the files in fol

Click scatter plot to get the cordinate's information

I'm trying to make a GUI that displays simple scatter plot making use of PyQt5 like below. I want implement a QLabel object at the bottom of GUI that displays t

How to setPixmap on a QLabel from QCamera image

I been trying an image to a Label via setPixmap() but to no avail... In fact, i want that if i click to call the Methode def click_photo(self): to setthe image

Unable to render webpage using QWebEngineView

I've been trying to render a webpage onto a widget in PyQt5. These are my settings PyQt : 5.15.4 | PyQtWebEngine : 5.15.4 | PyQt5-tools 5.15.4.2 I'm trying to r