Relative Content

Tag Archive for pythonpyqt5

PyQt5 Using One Slider Causes Random Interacting With Other Sliders

I am trying to make a LabeledSlider class that has all the logic for my slider contained within itself. Whenever I instantiate multiple of this class it causes the sliders to interact with one another when I move any of the sliders. Please help me fix this issue. My code is:

PyQt5: The connected slot to a clicked signal not working

first of all, sorry for my English. My mother tongue is Spanish.
So, I am working on this mini project to learn python. I’m learning how to do UI using PyQt5. This application is simple, it has three inputs, one button, and one output.
I’m using MVC software pattern in this app and I have my view, model, and controller in separate files.

PyQt5 pyqtsignal object has no attribute connect

I’m working on a PyQt5 application for a course and need to implement a pop-up menu that appears when I right-click on the screen. I attempted to implement it, but I’m encountering an error stating that the PyQtSignal object has no connect attribute. According to the documentation, there should be a connect attribute, so I’m not sure what’s going wrong.

Rotate QCursor – PyQt5

I want to rotate the icon of the QCursor.
I tried using the following code, but it seems not working, I can’t see the actual Size icon (I see the default icon) and the rotation is’t taking place.

add a progress bar before opening a window

I have a pyqt project where there is a large file processing, when I click on a button (Browse Folder) that will open a window containing treeviews that present the hierarchy of files, the window remains white for a few seconds, so here, I want to display a progress bar (like the loading one).
Here is my code :

Why do I get fault on itemAtPosition()

I’m trying to run the following program:
`import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QTabWidget, QWidget, QGridLayout, QLineEdit, QPushButton

Pyqt5 GUI change color

My program works fine untill, running a function few times, and after few times of running function the gui start turnning all white and grey, but functionallity works fine, have no idea why.