set width qpushbutton

#include <QApplication>
#include <QPushButton>

int main(int argc, char *argv[]) {
    QApplication app(argc, argv);

    QPushButton button("Click me");

    // Set the minimum width of the QPushButton
    button.setMinimumWidth(200);

    button.show();

    return app.exec();
}