Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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.