Skip to main content

All Questions

Tagged with
0 votes
0 answers
28 views

Resize QPixmap in size-fixed QLabel

In my GUI there is a embeded QLabel with "fixed" Size. At least Size is fixed, if user would like to zoom in/out. So there are many very usefull attempts with QLabels resizing due to the ...
Stefan Bongers's user avatar
0 votes
1 answer
44 views

QIcon.fromTheme does not load a jpg image

I am facing a problem with QIcon.fromTheme when loading a .jpg image. I use QIcon.fromTheme to switch icons in the app depending on the theme selected by the user. It works well with .svg icons (for ...
Ismael Santana's user avatar
0 votes
1 answer
118 views

QWidgetAction:hover in QMenuBar isn't working and doesn't want to hover

I am using class QMainWindow, as hovering doesn't want to work by any way. Code below: - #First imports import PyQt5, sys from PyQt5 import QtWidgets, QtGui, QtCore from PyQt5.QtCore import QTimer, ...
FixForMe's user avatar
0 votes
0 answers
64 views

PyQt5 QLabel setWordWrap doesn't work when labels text contains only letters

So, I am trying to make a whatsapp like app that allow you to chat with someone and works thru using firebase but the thing is message qlabel doesnt work properly. qLabels text is forcing ScrollArea ...
cross's user avatar
  • 1
0 votes
0 answers
56 views

DrawLine within Qlabel in PyQt5

I use Qt Designer to insert an image into the Qlabel as shown below. QT Designer image Then I want to draw a red cross on that image. For testing, I use the code below. When running the program, I can ...
SumoBBQ's user avatar
1 vote
1 answer
33 views

PyQt5 I can't see background picture when I added layouts

import sys from PyQt5 import QtWidgets,QtGui def Window(): app = QtWidgets.QApplication(sys.argv) window = QtWidgets.QWidget() window.setWindowTitle("GORKIDEV Application") ...
gorkemkayas's user avatar
1 vote
1 answer
66 views

Pyqt5 how can I remove Qlabel after adding them several times

I am trying to make a card game. After 1 game, I need to clear QLabel to start new game. Following is the summery that I am debugging. I want to clear all QLabel with QPushButton operation. But ...
Taniguchi's user avatar
0 votes
1 answer
80 views

How to enable mouse tracking on a QLabel that has RichText

I really want a single QLabel to have different colours for different parts of the string. Past questions have led me to the solution of using HTML4 rich text options within it, for example: '<font ...
mazelover1939's user avatar
0 votes
0 answers
17 views

PyQt QPropertyAnimation not starting [duplicate]

I have implemented a custom label that animates the font size. When defining the UI programatically, as in AniLabelTest, the animation works. However, when using the UI designed in QtCreator, the ...
aescarve's user avatar
0 votes
1 answer
98 views

How to run multiple two separate QGraphicsOpacityEffect on two separate QLabels simultaneously

Say you have two QLabels a QWindow, label1 and label2, and you want to run a QGraphicsOpacityEffect on both of them. The two effects must start at the same time, play simultaneously, but last ...
mazelover1939's user avatar
0 votes
1 answer
353 views

QLinearGradient pyqt5 doesn't working with QLabel

In qt designer creating QLabel and set styleSheet: font: bold 50px; color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(13, 115, 119, 255), stop:1 rgba(78, 204, 163, 255)); But ...
Fine Man's user avatar
-2 votes
1 answer
273 views

Change a label after a specified time

I am trying to change a label on a button click and then after 3 seconds I want it to change back to nothing ("") my code is this: def apply_click(self): ui.label_ischanged.setText("...
Not0_0Parsa's user avatar
1 vote
1 answer
364 views

QLabel Style Sheet not change before the execution of loop in pyqt5

I want to change the background color of my QLabel. On clicking the label, label connects to an event that sets the label color to Red and loop runs for 3 second after 3 seconds and completion on ...
Zaid's user avatar
  • 13
-1 votes
1 answer
127 views

How to create legend in progress bar?

how to make number follow the bar size? in this qt designer, i create frame which contain bar, and qlabel =500\n\n250\n\n0\n\n-250\n\n-500 Is there a way to create legend in this bar? or can we make ...
M.F.J's user avatar
  • 9
1 vote
1 answer
305 views

PyQt5: QLabel.text() function causes app to crash

I'm new to PyQt5. I'm currently working on a calculator just for some practice, but for some reason, the app crashes when I use the eval() function in the QLabel().setText() function. Here's a sample ...
Lenovo 360's user avatar

15 30 50 per page
1
2 3 4 5
12