QLabel* label = new QLabel("Hello"); label->setFrameStyle(QFrame::Box | QFrame::Raised);
QLabel* label = new QLabel("World"); label->setFrameStyle(QFrame::Panel | QFrame::Sunken);
QLabel* label = new QLabel("!"); label->setFrameStyle(QFrame::StyledPanel | QFrame::Plain);This example creates a new QLabel object and sets the frame style to a plain styled panel. The separate method setFrameShadow and setFrameShape were deleted in Qt5, so in Qt5 it became necessary to use setFrameStyle instead. The QLabel class belongs to the Qt toolkit library.