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

📄 form.cpp

📁 在linux环境下
💻 CPP
字号:
#include "form.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qtextedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

Form::Form( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "Form" );

    sendButton = new QPushButton( this, "sendButton" );
    sendButton->setGeometry( QRect( 260, 430, 81, 31 ) );

    closeButton = new QPushButton( this, "closeButton" );
    closeButton->setGeometry( QRect( 360, 430, 81, 31 ) );

    readEdit = new QTextEdit( this, "readEdit" );
    readEdit->setGeometry( QRect( 10, 10, 431, 281 ) );
    readEdit->setMouseTracking( FALSE );

    inputEdit = new QTextEdit( this, "inputEdit" );
    inputEdit->setGeometry( QRect( 10, 310, 431, 101 ) );

    nameEdit = new QTextEdit( this, "nameEdit" );
    nameEdit->setGeometry( QRect( 460, 10, 131, 401 ) );
    languageChange();
    resize( QSize(600, 480).expandedTo(minimumSizeHint()) );
}

Form::~Form()
{
}
void Form::languageChange()
{
    setCaption( trUtf8( "聊天室" ) );
    sendButton->setText( trUtf8( "发送" ) );
    closeButton->setText( trUtf8( "关闭" ) );
}

⌨️ 快捷键说明

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