QT視窗程式預設最大化開啟 Qt show window maximized
QT視窗程式預設最大化開啟 Qt show window maximized
資料來源: https://stackoverflow.com/questions/40659789/how-can-i-maximize-my-main-window-and-prevent-resize-in-qt
Code:
#include "widget.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); Widget w; w.showMaximized(); w.show(); return a.exec(); }