#includeIn this code example, a new instance of a QFrame is created and its height is set to 100 pixels using the setFixedHeight() function. Package library: Qt Core and Qt GUI.QFrame* frame = new QFrame(); frame->setFixedHeight(100); // Sets the height of the frame to 100 pixels.