qlabel Questions

4

Solved

I need a QLabel whose width should not adapt to the contained text but which is resizeable by the user (or the layout to be exact). If the text is too long for the width of the QLabel it should sim...
Muttra asked 6/2, 2018 at 10:34

4

I have a Qlabel filled with QPixmap and I want to start a process/function once this label clicked. I had extended QLabel class as follows: from PyQt5.QtCore import * from PyQt5.QtWidgets import * ...
Eatage asked 8/8, 2017 at 18:31

2

Solved

I am working on a PyQt5 project, but would be happy to read C++/Qt answer as well, because C++ solutions may work on Python too. I have a MainWindow with a horizontal layout, and a QLabel in it. ...
Dispersion asked 12/4, 2016 at 13:45

4

Solved

I have got a QLabel element in a widget which can be resized. The text can overflow boundaries, so I need, for the application to look more elegant, some way to make the text generate an ellipsis (...
Implosive asked 11/9, 2011 at 20:40

3

I want to display a standard warning icon along with some description text in QLabel in pyqt. Qlabel doesn't have setIcon function. So how could I do that? Any help would be appreciated.
Expostulatory asked 10/5, 2012 at 12:19

10

Solved

I use a QLabel to display the content of a bigger, dynamically changing QPixmap to the user. It would be nice to make this label smaller/larger depending on the space available. The screen size is ...
Noisette asked 21/11, 2011 at 12:43

3

Solved

For example, we have a QLabel with MaximumWidth set to 400. When we try to display some text with pixel width more than 400, it's shown cut off. Is there any way to make QLabel display this string ...
Rectilinear asked 5/9, 2012 at 12:26

4

I'm new in Qt and have a question. I have QLabel and QLineEdit objects, and when QLabel text is clicked on, I want to set this text in QLineEdit. Also I have read that QLabel has not clicked sign...
Holmgren asked 14/8, 2015 at 21:31

1

I am learning QT and I am puzzled by the difference in performance of QLabel and QGraphics view while panning. I read a huge 36Mpixels (D800) jpeg file into either QLabel or QGraphics objects and ...
Flooded asked 21/9, 2012 at 0:27

4

Solved

We are making a GUI using PyQt and Qt Designer. Now we need that an image(pixmap) placed in a QLabel rescales nicely keeping ratio when the window is resized. I've been reading other questions/an...
Regnal asked 10/1, 2014 at 10:30

2

Solved

Clicking QLabel should open a default web browser with URL link specified. It is not happening yet. Why? A second question. Would it be possible to override the default blue color of the Label's f...
Dardanelles asked 28/9, 2015 at 21:0

3

I want that if I move my mouse over the label with text stop on it then it should change the value of a variable Stop to True so that I may pause/stop my program. I have looked the code at Mouseove...
Tombolo asked 21/7, 2018 at 13:8

1

I am trying to make a multi line QLabel with a text without space but delimited by comma. ex : 'Cat,Dog,Rabbit,Train,Car,Plane,Cheese,Meat,Door,Window' I have found that multiline is possible with...
Graner asked 17/2, 2021 at 20:13

2

Solved

I need to display text with a QLabel with following requirements: Word wrapping Expand from small width to full width according to the length of the text while the label takes a single line Always...
Forebrain asked 21/7, 2015 at 9:24

4

Solved

I had written a gui using PyQt5 and recently I wanted to increase the font size of all my QLabels to a particular size. I could go through the entire code and individually and change the qfont. But...
Eructate asked 16/8, 2020 at 22:15

4

Solved

I have a QLabel with a Qt stylesheet that sets a dark background: QLabel { background: black; color: white; } This works fine until I add text with an embedded URL and set the Qt::TextFormat to...
Metsky asked 31/3, 2011 at 9:33

3

Solved

How can use different font & size for the child Widgets in the GroupBox and the tittle for the GroupBox in python def panel(self): groupBox = QtGui.QGroupBox("voltage Monitor") groupBox.set...
Lola asked 22/9, 2015 at 18:24

2

Solved

I have a QLabel that i fill in red with the stylesheet, but the QLabel is rectangular, and I want a circle. I try to add border-radius, but it doesn't work, maybe because i put my QLabel in a formL...
Ulyssesumayyad asked 21/5, 2014 at 14:46

2

Solved

I'm currently trying to fade a specific QLabel in and out. My first try was to use the setAlphaChannel, however this just didn't work. My current approach is to use a for-loop and set the styleshee...
Glorygloryofthesnow asked 10/1, 2018 at 16:0

3

I've added QLabel widgets to my QTreeWidget to work around the word wrapping issue in QTreeWidget. (see how to word wrap a QTreeWidgetItem). The QLabel widgets appear to have spacing around the tex...
Girl asked 8/1, 2014 at 21:48

2

Solved

I am using QPixmap for displaying images of different sizes on a label. I have used the following code to display the image(s): myPixmap = QtGui.QPixmap(os.path.join("data", "images", image_name))...
Syzygy asked 28/12, 2014 at 11:37

2

Solved

I am beginner in Qt, now I want to make my label clickable, I have searched so much online, but no one gives my a real example of how they made it. So can someone teach me step by step? Now my basi...
Gameness asked 6/7, 2017 at 10:11

1

Solved

I have a very small Qt application that uses labels to display a jpeg image without first putting it in a window. (I got a lot of help from Display QImage with QtGui) Now I would like to change th...
Placative asked 11/5, 2017 at 17:28

3

Solved

I work on Win7 x64 with OpenCV and Qt Libraries and VS 2010. I would like to open my camera with OpenCV and then to show captured frames with Qt, for example using QLabel, after converting from Ma...
Flavine asked 6/2, 2013 at 12:45

1

Solved

I'm new to PyQt5 and I couldn't find any answers that worked for me about how to draw with QPainter on top of a loaded image (QPixmap("myPic.png")). I tried doing it within a paintEvent method but ...
Chanson asked 13/3, 2017 at 17:2

© 2022 - 2024 — McMap. All rights reserved.