660 questions
1
vote
0
answers
72
views
Transparent background QLabel overwrites text on updates
I'm using Pyside6 with PyVista for an app we use to visualize and derive measurements from body scan meshes. The issue I'm hitting is with QLabel text overlays with transparent backgrounds. (The ...
2
votes
3
answers
146
views
How to enable QLabel character wrapping(Not Word Wrapping) in QWidget C++?
I tried the word Wrap option in QLabel, but it wraps second word of "Hello World" on next line when size of label shrinks, I need to wrap the single word like "Hello" on character ...
0
votes
0
answers
54
views
How to get direct access to a QWidget which is an item of a QToolBox?
I have a QToolBox which has a page, which has a QWidget and the QWidget has a QLabel. How can I access the QLabel only with direct access to the QToolBox?
QToolBox* toolBox = new QToolBox;
void ...
0
votes
0
answers
26
views
python - how to load image from pyautogui.screenshot to qLabel (pyqt5) [duplicate]
How to load screenshot from img to qLabel without saving image
#pyqt5
def click_screenBtn():
try:
img = pyautogui.screenshot('screen.png')
w.qLabel.setPixmap(QPixmap('screen.png'))
...
0
votes
1
answer
57
views
Problems displaying a table next to an image in Python and QT6
I have problems displaying a QTableView next to an image (QLabel / QPixmax) in window size.
The table as well as the image (original size 600 x 400 pixels) are displayed very small, see attached image....
1
vote
1
answer
732
views
Bold QLabel font with PyQt6 from ui file
I have upgraded from PyQt5 to PyQt6 (Qt version: 6.7.1) and noticed a change how bold fonts are rendered in QLabels.
I typically load a ui file generated from Qt Designer directly with:
from PyQt6 ...
0
votes
0
answers
69
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 ...
0
votes
1
answer
86
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 ...
0
votes
1
answer
103
views
How to prevent a QLabel from expanding because of added text?
There is a QLabel added to the status bar of the main window. When setting a long text, the QLabel expands and expands the window with it. It is necessary that the size of the QLabel and the window do ...
0
votes
1
answer
167
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, ...
0
votes
0
answers
108
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 ...
1
vote
1
answer
171
views
PyQt changing the widget state while pressing the button
I want a Qlabel to appear when the button is pressed, which informs about the work process.But setenabled(True) is called after start_calc is executed.How to fix it?
from PyQt5 import QtWidgets
...
0
votes
0
answers
44
views
Sometimes (but not always) This custom info button doesn't display itself in full. Any ideas why? [duplicate]
I have these 2 classes, one makes a custom button with an icon, some formatting and all that, and the other makes a custom tooltop that displays whenever the user hovers over the button, and it moves ...
2
votes
1
answer
815
views
QPixmap is not shown when run application in Qt
Qt Designer allows me to add a .png file as a QLabel's pixmap, But it's only visible there, and not when running the app, and there are no errors.
This occurs when the picture is already included in a ...
1
vote
1
answer
55
views
python Qlabel text is not updated as I expect
I have a question about Qlabel.
Following is the example of code. While opertaiong the program, I want to show message that the system is operating.
But somehow Qlabel message was not updated as I ...