📄 chaxun.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'chaxun.ui'**** Created: Tue Jul 24 09:36:08 2007** by: The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "chaxun.h"#include "quanguo.h"#include <qpushbutton.h>#include <qlayout.h>#include <qvariant.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>static const char* const image0_data[] = { "16 16 40 1","# c None",". c #000000","I c #191919","A c #282828","H c #292929","x c #2b2b2b","p c #343434","L c #373737","l c #383838","K c #474747","F c #4e4e4e","e c #546100","f c #5e6b00","v c #606060","t c #656565","r c #696969","J c #757575","g c #787878","j c #859800","C c #888788","D c #888887","E c #888888","k c #9bb200","G c #adacad","B c #b1b0b1","z c #b5b5b5","n c #b8d200","y c #bbbaba","w c #bfbfbf","u c #c4c4c4","c c #c7c7c7","s c #cacaca","q c #cfcfcf","o c #d3d3d3","m c #d8d8d8","i c #dcdcdc","d c #dfdfdf","b c #e2e2e2","a c #e8e8e8","h c #ffffff","...........#####",".abbbbbbbc....##",".defffffeg..h..#",".ijkkkkkjl..hh..",".mknnnnnk.hhhhh.",".oknn.nnkp..hh..",".qknnnnnkr..h..#",".sknn.nnkt....##",".uknnnnnkv..h.##",".wknn.nnkx.hh...",".yknnnnnk.hhhhh.",".zknnnnnkA.hh...",".BCDEEDEEF..h.##",".GhHhHhHhI....##",".JKKKKKKKL.#####","...........#####"};/* * Constructs a chaxun 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. */chaxun::chaxun( QWidget* parent, const char* name, WFlags fl ) : QDialog( parent, name, TRUE ){ QPixmap image0( ( const char** ) image0_data ); if ( !name ) setName( "chaxun" ); resize( 95, 200 ); setMaximumSize( QSize( 95, 200 ) ); setCaption( tr( "chaxun" ) ); setIcon( image0 ); QWidget* privateLayoutWidget = new QWidget( this, "Layout2" ); privateLayoutWidget->setGeometry( QRect( 4, 4, 85, 195 ) ); Layout2 = new QVBoxLayout( privateLayoutWidget ); Layout2->setSpacing( 6 ); Layout2->setMargin( 0 ); PushButton1 = new QPushButton( privateLayoutWidget, "PushButton1" ); PushButton1->setMaximumSize( QSize( 85, 22 ) ); PushButton1->setText( tr( "shouzimuchaxun" ) ); Layout2->addWidget( PushButton1 ); PushButton1_2 = new QPushButton( privateLayoutWidget, "PushButton1_2" ); PushButton1_2->setMaximumSize( QSize( 85, 22 ) ); PushButton1_2->setText( tr( "mohuchaxun" ) ); Layout2->addWidget( PushButton1_2 ); PushButton1_7 = new QPushButton( privateLayoutWidget, "PushButton1_7" ); PushButton1_7->setMaximumSize( QSize( 85, 22 ) ); PushButton1_7->setText( tr( "sheshi" ) ); Layout2->addWidget( PushButton1_7 ); PushButton1_3 = new QPushButton( privateLayoutWidget, "PushButton1_3" ); PushButton1_3->setMaximumSize( QSize( 85, 22 ) ); PushButton1_3->setText( tr( "daolu" ) ); Layout2->addWidget( PushButton1_3 ); PushButton1_4 = new QPushButton( privateLayoutWidget, "PushButton1_4" ); PushButton1_4->setMaximumSize( QSize( 85, 22 ) ); PushButton1_4->setText( tr( "diming " ) ); Layout2->addWidget( PushButton1_4 ); PushButton1_5 = new QPushButton( privateLayoutWidget, "PushButton1_5" ); PushButton1_5->setMaximumSize( QSize( 85, 22 ) ); PushButton1_5->setText( tr( "jiaochalukou" ) ); Layout2->addWidget( PushButton1_5 ); PushButton1_6 = new QPushButton( privateLayoutWidget, "PushButton1_6" ); PushButton1_6->setMaximumSize( QSize( 85, 22 ) ); PushButton1_6->setText( tr( "fanhui " ) ); Layout2->addWidget( PushButton1_6 ); connect(PushButton1_6, SIGNAL(clicked()), this, SLOT(close())); connect(PushButton1_6, SIGNAL(clicked()), this, SLOT(fanhuidialog()));}/* * Destroys the object and frees any allocated resources */chaxun::~chaxun(){ // no need to delete child widgets, Qt does it all for us}void chaxun::fanhuidialog(){quanguo *q= new quanguo(0,"quanguo");q->exec();delete q;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -