Questions tagged [qlabel]

The QLabel widget, part of the Qt framework, provides a text or image display.

No user interaction functionality is provided. The visual appearance of the label can be configured in various ways, and it can be used for specifying a focus mnemonic key for another widget.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

653 questions
-1
votes
1 answer

creating Qlabels with dynamic name at run time

#in this example len(list) is 5 i=0 while i < len(list): label=q_label_i #creating a name for the label self.label=QLabel() # grid.addWidget(self.label,i ,0) # grid is a grid = QGridLayout() …
Vik G
  • 539
  • 3
  • 8
  • 22
-1
votes
1 answer

I can't see QLabel and QLineEdit widgets in my QMainWindow in Python2

I wrote this code and I don't understand why widgets QLabel and QLineEdit don't show up? Do I have to put them in another class? It's Python2.7 and PySide. This is how a window looks like when I run the code: #!/usr/bin/env python # coding:…
Hrvoje T
  • 3,365
  • 4
  • 28
  • 41
-1
votes
2 answers

Segmentation fault when accessing the text of QLabel

I got a problem with the QLabel. I got a QtWidget with a QLabel inside. Now I want to change the text of the Label with following code: QLabel* safetyLabel = this->findChild
Da Mks
  • 31
  • 6
-2
votes
1 answer

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("Applied!") and I connected it to my button then I used…
-2
votes
1 answer

Pyqt5 - Zoom on a QLabel

I'm trying to apply a zoom example that I've found on this site but it uses a QGraphicsScene and a QGraphicsView while I should use a simple QLabel. This is the code but it does not work. Can I zoom on a Qlabel or is it impossible? The zoom should…
Nunkij
  • 21
  • 6
-2
votes
1 answer

How to make label text outlined AND fit the size of the label

How to make label text to be outlined (for better visibility on transparent Widget) and to be fit into label (as per function setWordWrap (True)? There are examples of how to do one or another, but never both. Basic example of static label text on…
-5
votes
1 answer

Program crashes when using QList of QLabel

I've made a window that opens by pressing a button. In this window, I've created a QList of 38 QLabels :QList Nombres; And I allocated it like that : for(int i = 0; i <= 38; i++) { Nombres.push_back(new…
Ykla
  • 3
  • 2
1 2 3
43
44