QLabel *label = new QLabel("Hello World"); label->setFrameShape(QFrame::Box);
QLabel *label = new QLabel("No frame here"); label->setFrameShape(QFrame::NoFrame);In this example, a new QLabel is created with the text "No frame here", and its frame is set to no visible shape or border. The QLabel setFrameShape method is part of the Qt Core library, specifically the QtWidgets module.