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 ?
Albertina asked 1/5, 2010 at 11:57

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...
Personal asked 15/10, 2014 at 9:21

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)...
Wilsonwilt asked 6/3, 2014 at 18:16

1

Solved

I'm currently building a UI where I do have 3 labels that are arranged in a horizontal layout: | textLabel | valueLabel | unitLabel | The valueLabel and unitLabel are aligned right. unitLabel ha...
Nofretete asked 22/1, 2014 at 13:48

1

Solved

I am developing the user interface for a embedded device. I have created about 30 ui forms. You have first the Welcome form which loads the database and connects automatically to the available know...
Sluiter asked 10/1, 2014 at 9:36

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...
Sarre asked 9/12, 2013 at 2:31

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...
Gyrostatics asked 14/11, 2013 at 18:38

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...
Goodale asked 8/4, 2013 at 19:50

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...
Hawkbill asked 16/5, 2013 at 7:27

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...
Flank asked 9/7, 2012 at 18:43

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...
Iodine asked 23/6, 2012 at 19:39

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)...
Lanyard asked 22/1, 2012 at 9:47

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...
Henghold asked 17/1, 2012 at 5:56

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 ...
Dor asked 26/12, 2011 at 6:23

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.