QLabel* label = new QLabel("Hello World"); label->setFixedSize(150, 50);
QPushButton* button = new QPushButton("Click me"); button->setFixedSize(100, 100);This code creates a QPushButton widget with the text "Click me" and sets its size to 100 x 100 pixels. The QWidget setFixedSize function is part of the Qt Core module.