Category "pyqt"

PyQT5 and OpenCv2 loading images incorrectly when refreshing

In a nutshell, I currently am trying to load a picture and view it using pyqt5, via QtWidgets.QGraphicsScene. However, after loading the picture, I run some ope

How to implement snap grid with cross cursor in pyqt?

I want to draw a snap grid like the picture as bellow,I can draw the background point, but I don't know how to snap the grid point while mouse moving,Could her

PyQT how to change layouts size

I am trying to make a GUI that is very similar to Spotify using PyQT I've already designed the main window and I am struggling with applying the design to QT Cr

PyQt 6: Are there any classes with signals that emit when the device connects/disconnects to/from the internet?

I'm adding a download function to an application that I'm creating. When the user's device's internet connection is lost during a download, I want the download

Why do rebound methods of PyQt classes raise a TypeError

Making my code compatible with PyQt5/6 and PySide2/6, I wrote if not hasattr(QtCore.QDateTime, 'toPython'): # fix for PyQt5/6 QtCore.QDateTime.toPython = Q

pyqt - How to make path of selected folder open in window?

How can I make the path of the selected folder open in the browser window as shown in the picture below? def open(self): current_item = self.treewidget.sel

Method to stop QThread that calls OpenCV functions

I have a simple PyQT application which, on press of a "calculate" button calls a long-running function that performs some image processing using OpenCV. To allo

open file (e.g. right click/ open with) event for python3 script on a mac

I would like my python3 script to react to an open file event. Is there any way to achieve that? The following python3 script is named example #!/path/to/python

pyqt is not showing my progress bar but it is taking the time to go through it [duplicate]

I have a set of functions that when they run can take a few minutes to finish. I want to display a progress bar while they are running. I have

How to use QTest.keySequence?

I'm trying to test if a shortcut is working using PyQt5 and QTest. Here is my code: Main.py from PyQt5.QtGui import QKeySequence from PyQt5.QtWidgets import QWi

Why won't my new layout be displayed dynamically on my GUI ? Python - PyQt

I'm trying to print some text in a new layout when a button is pressed. Unfortunately if won't work and I can't find the problem to solve it. Thank you for your

I wonder why pyqtSignal() is used. (pyqt, QThread, signal, slot)

This is the test code about QThread and Signal. from PyQt5.QtWidgets import * from PyQt5.QtCore import * import time import sys class Thread1(QThread): se

The window i made with qt designer doesn't show up

I made this window using qt designer i did not add the code that downloads the songs yet but when I run it the window doest show up from PyQt5 import QtCore, Qt

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