Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
Allocate QLabel of a QFrame inside a Slot function
cjacquel2021 last edited by
When I allocate the QLabel of a Qframe inside a Slot function it does not work, when I allocate outside the Slot function its working.
Could you help ?
JonB last edited by
Not from this description, no, since whether the code is in a slot is not relevant. Show your code.
Pl45m4 last edited by
You need to assign the label to a layout or
show()it. Doesn't matter where you create it.
What do you mean by "
QFrame"? Label inside the frame?
Just add the label to the frame layout.