創建一個MainWindows,取消建立Qtspa
一、添加菜單欄code
#include <QMenuBar>
menuBar()->addMenu( "&File" ); menuBar()->addMenu( "&Edit" ); menuBar()->addMenu( "&View" ); menuBar()->addMenu( "&Simulate" ); menuBar()->addMenu( "&Help" );
二、添加底部狀態欄blog
#include <QStatusBar>
statusBar()->showMessage("QSimulate has started");
--it