qlabel Questions
2
Solved
Can I add some widgets like QLabel and QPushButton into a QTabWidget?
Actually, I want to do something like this:
I'm using C++ and Qt.
Thanks
Mcreynolds asked 6/6, 2016 at 3:33
1
I am writing a screenshot utility with PyQt, and the idea is take a screenshot of the whole desktop, then display it in a QLabel, make the window full screen and user selects a region by mouse.
Is...
Kaifeng asked 11/12, 2015 at 9:37
6
Solved
How do I set color of text and background of a QLabel ?
1
Is there a way to set the text direction for a QLabel? I've got a situation in which I have QLabel objects whose text is only punctuation, and I want that to be displayed either in RTL or LTR forma...
1
I have got a QListWidgetItem, which has a QWidget and some QLabels. The height of the labels (imageLabel, titleLabel and descriptionLabel) varies depending on the text length. So does the height of...
Hidalgo asked 6/8, 2014 at 10:33
1
Solved
I want to add a gif animated image in QLabel that add into the QGraphicsScene.
My code is here:
QLabel *lbl = new QLabel;
QMovie *mv = new QMovie(":/Images/sun.gif");
mv->start();
lbl->setWi...
Breakwater asked 6/7, 2014 at 5:14
2
Solved
I am working in python GUI using pyqt4 library and new with signal and slots. I don't know how to put event on label name QPLabel. Here is my code :
class Ui_Form(object):
def setupUi(self, Form)...
1
Solved
1
Solved
1
Solved
I currently have a QLabel that has some text in it. However when I put some text in it that exceeds its geometrical width then that extra text is not displayed. I do not want to enable wordwrap sin...
2
Solved
My question is: how can I change the text in a label? The label is inside a layout, but setText() does not seem to work - maybe I am not doing it right.
Here is my code:
this is the Main windows...
1
I have a custom QLabel with wordwrap enabled. When resizing MyWidget, it wraps but the sizeHint() still returns the original height.
I tried the fix from this post: QLabel cutting off text on resiz...
1
Solved
I would like to handle a click to the link in this application of mine:
When I click on the "Output File" link, I would like to be able to generate an action in my application.
As of today, the...
2
I've successfully implemented a Image Viewer (for DICOM) in Qt.
I can see the image and I can zoom in and out correctly.
Now, I want to see scroll bars if the image is too big to show when I zoom ...
Esoterica asked 11/6, 2012 at 14:2
1
Solved
Can anybody point me in the right direction on how to create a new QMovie "provider" in PySide?
I have a video stream that I want to display as simply as possible (no audio, just a sequence of fra...
1
Solved
I use Qt and I want to move some object with mouse. For example, user clicks on object and drag this object to another place of window. How I can do it?
I tried mouseMoveEvent:
void QDropLabel::m...
2
Solved
I have a QLabel with a 'StyledPanel, raised' frame.
It is clickable, by subclassing QLabel;
class InteractiveLabel(QtGui.QLabel):
def __init__(self, parent):
QtGui.QLabel.__init__(self, parent)...
1
Solved
I'm trying to make a QLabel not visible by default in Qt Designer. I can hard code it but I was wondering if there was a way to set this using the designer.
m_uiForm.aLabel->setVisible(false);
...
Teague asked 13/2, 2012 at 12:2
2
Solved
I have a QLabel that contains rich text.
I want to extract just the actual (visible) 'text' from the QLabel, and none of the code for formatting.
I essentially need a function similiar to the '.toP...
1
Solved
I have a QLabel of a fixed width.
I need to check (periodically) that the entire string fits inside the QLabel at its current width, so I can resize it appropriately.
To do this, I need to obtain ...
1
Solved
This might be an easy question, but I'm trying to give a color to a specific QLabel in my application and it doesn't work.
The code I tried is the following :
nom_plan_label = QtGui.QLabel()
nom_...
Ravo asked 20/12, 2011 at 15:16
2
Solved
My QLabels look quite ugly, it seems that there's no anti-aliasing. How can I enable this feature (assuming it's available)?
Nissensohn asked 19/7, 2011 at 11:16
© 2022 - 2024 — McMap. All rights reserved.