⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serverbase.cpp

📁 76个qt 例子。 非常适合学习qt编程
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'serverbase.ui'**** Created: 星期一 一月 3 00:18:24 2005**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.1   edited Nov 24 13:47 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "serverbase.h"#include <qvariant.h>#include <qlabel.h>#include <qtextedit.h>#include <qpushbutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>/* *  Constructs a ServerInfoBase as a child of 'parent', with the *  name 'name' and widget flags set to 'f'. */ServerInfoBase::ServerInfoBase( QWidget* parent, const char* name, WFlags fl )    : QWidget( parent, name, fl ){    if ( !name )	setName( "ServerInfoBase" );    ServerInfoBaseLayout = new QVBoxLayout( this, 11, 6, "ServerInfoBaseLayout");     TextLabel1 = new QLabel( this, "TextLabel1" );    TextLabel1->setAlignment( int( QLabel::AlignCenter ) );    ServerInfoBaseLayout->addWidget( TextLabel1 );    infoText = new QTextEdit( this, "infoText" );    infoText->setReadOnly( TRUE );    ServerInfoBaseLayout->addWidget( infoText );    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1");     Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    Layout1->addItem( Spacer2 );    btnQuit = new QPushButton( this, "btnQuit" );    btnQuit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, btnQuit->sizePolicy().hasHeightForWidth() ) );    Layout1->addWidget( btnQuit );    Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    Layout1->addItem( Spacer1 );    ServerInfoBaseLayout->addLayout( Layout1 );    languageChange();    resize( QSize(272, 282).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );}/* *  Destroys the object and frees any allocated resources */ServerInfoBase::~ServerInfoBase(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void ServerInfoBase::languageChange(){    setCaption( tr( "Info Server" ) );    TextLabel1->setText( tr( "This is a small Information Server.\n""Accepting client requests..." ) );    btnQuit->setText( tr( "&Quit" ) );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -