📄 mainwindow.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'gui.ui'**** Created: Thu Dec 14 18:57:34 2006** by: The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "mainwindow.h"#include <qframe.h>#include <qheader.h>#include <qlistview.h>#include <qlayout.h>#include <qvariant.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>/* * Constructs a Gui which is a child of 'parent', with the * name 'name' and widget flags set to 'f' * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */Gui::Gui( QWidget* parent, const char* name, WFlags fl ) : QMainWindow( parent, name, fl ){// QPixmap image0( ( const char** ) image0_data ); if ( !name ) setName( "Gui" ); resize( 640, 480 ); setMinimumSize( QSize( 640, 480 ) ); setMaximumSize( QSize( 640, 480 ) ); QFont f( font() ); f.setFamily( "adobe-courier" ); f.setPointSize( 16 ); setFont( f ); setCaption( tr( "Power " ) );// setIcon( image0 ); ListView1 = new QListView( this, "ListView1" ); ListView1->addColumn( tr( "Item" ) ); ListView1->setGeometry( QRect( 5, 60, 120, 410 ) ); Frame3 = new QFrame( this, "Frame3" ); Frame3->setGeometry( QRect( 130, 60, 505, 415 ) ); Frame3->setFrameShape( QFrame::NoFrame ); Frame3->setFrameShadow( QFrame::Sunken );}/* * Destroys the object and frees any allocated resources */Gui::~Gui(){ // no need to delete child widgets, Qt does it all for us}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -