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

📄 clientbase.cpp

📁 76个qt 例子。 非常适合学习qt编程
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'clientbase.ui'**** Created: 星期一 一月 3 00:18:26 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 "clientbase.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlabel.h>#include <qtextedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>/* *  Constructs a ClientInfoBase as a child of 'parent', with the *  name 'name' and widget flags set to 'f'. */ClientInfoBase::ClientInfoBase( QWidget* parent, const char* name, WFlags fl )    : QWidget( parent, name, fl ){    if ( !name )	setName( "ClientInfoBase" );    ClientInfoBaseLayout = new QVBoxLayout( this, 11, 6, "ClientInfoBaseLayout");     Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5");     btnOpen = new QPushButton( this, "btnOpen" );    btnOpen->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, btnOpen->sizePolicy().hasHeightForWidth() ) );    btnOpen->setDefault( TRUE );    Layout5->addWidget( btnOpen );    Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    Layout5->addItem( Spacer4 );    btnQuit = new QPushButton( this, "btnQuit" );    btnQuit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, btnQuit->sizePolicy().hasHeightForWidth() ) );    Layout5->addWidget( btnQuit );    ClientInfoBaseLayout->addLayout( Layout5 );    TextLabel2 = new QLabel( this, "TextLabel2" );    ClientInfoBaseLayout->addWidget( TextLabel2 );    infoText = new QTextEdit( this, "infoText" );    infoText->setReadOnly( TRUE );    ClientInfoBaseLayout->addWidget( infoText );    languageChange();    resize( QSize(325, 279).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );}/* *  Destroys the object and frees any allocated resources */ClientInfoBase::~ClientInfoBase(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void ClientInfoBase::languageChange(){    setCaption( tr( "Info Client Protocol" ) );    btnOpen->setText( tr( "&Open" ) );    QToolTip::add( btnOpen, tr( "open data" ) );    btnQuit->setText( tr( "&Quit" ) );    TextLabel2->setText( tr( "Data:" ) );}

⌨️ 快捷键说明

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