Category "pyqt"

PyQt6/PySide6: QStackedLayout aligns the size of nested widgets

I created a QStacedLayout and nested 2 widgets in it. However, as I understand it, if one widget is larger than the other, then QStackedLayout seems to be tryin

Qt allow dock widget to overlay

How could I allow a dock widget to be over other widgets? I would like to get a result like the tool bar of a IDE such as VSC or PyCharm. The bar can be resized

Python PyQt update GUI

basically I am having trouble with Updating my new GUI. Windows 10 | Python 3.8 | PyQt5 I got a class like class My_GUI(): def __init__(self): ..

Promoted Widget in Qt Designer does not instantiate children

Problem I promoted a widget in Qt Designer and it worked, the problem is that when I run the program, it doesn't show the children of this widget that I created

PyQt - Oriented Flow Layout

I'm trying to adapt this PyQt implementation of FlowLayout to allow vertical flow as well as horizontal. This is my current implementation: from PyQt5.QtWidget

QTableWidget doesn't show values

I am trying to insert a data set into a QTableWidget using PyQt. However, when I use tableWidget.setItem() my IDE crashes. usuarios = db.child("operacoe

Counter var doesn't count up

I was working on a function that should count the total amount of e-mails that are in the inbox. everything works but it just doesn't want to count it all up. I

The icon of QPushButton is blurry when DPI scaling is enabled

I found the icon of QPushButon is blurry when DPI scaling is enabled. Even if replaced by SVG, the icon is still blurred. Is there any way to make the icon clea

I get "Release of profile requested but WebEnginePage still not deleted. Expect troubles !" even after calling app.exec()

I have a python code like below import sys from PyQt5 import QtWidgets, QtWebEngineWidgets from PyQt5.QtNetwork import QNetworkCookie from PyQt5.QtCore import Q

PyQt QtreeView scrollbar overlapping header

I've been trying to use QTreeView (instead of QListView) because I needed an horizontal header. Furthermore, I wanted to use stylesheet to customize header colo

Get the text and index of the current selected QTreeView item

I was wondering how I can return the text value, and index of a selected item in a QTreeView. I tried using: self.TreeView.selectedIndexes() but that returns

'pyuic5' is not recognized as an internal or external command

I am trying to convert ui file created by QTDesigner to py file. but i get the error: pyuic5 is not recognized as an internal or external command. I use anacond

Checkbox selection in QListView

I developed a simple dialog with a checkbox, which allows the user to select one or several items from a list. Besides the standard OK and Cancel buttons, it ad

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,

How to change QComboBox QAbstractItemView border radius in Qt Style sheet

I want the QCombobox to have a round shape similar to the picture above. I made it somewhat similar. But when I click the QComboBox to check the list, the ro

Adding a Image Button Class

I have a PyQT layout built with QWidget. I have a few labels, buttons, etc and now I want to add a image that changes color on click. For this, I have built a c

PyQt GUI size on high resolution screens

I posted a question a while ago asking about Tkinter backends and subsequently forgot about it but I've since realised that I'm using the pyqt backend. Is there

Add/Remove numerous plots on a PlotWidget in Pyqtgraph

I have a plotWidget (self.widget0) from pyqtgraph on the pyqt GUI. I want to add 200 plots at this widget. What I can do is add each plot one by one: self.plot0

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