📄 frmserver.cpp
字号:
#include "frmserver.h"/* * Constructs a frmserver 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. */static const Q_UINT16 ipcPort = 8000;frmserver::frmserver( QWidget* parent, const char* name, bool modal, WFlags fl ) : serverform( parent, name, modal, fl ){ IpcServer *server = new IpcServer( ipcPort, this ); connect( server, SIGNAL(receivedText(const QString&)),txtEdit, SLOT(append(const QString&)) ); connect( server, SIGNAL(receivedPixmap(const QPixmap&)),pixDisplay, SLOT(setPixmap(const QPixmap&)) ); }/* * Destroys the object and frees any allocated resources */frmserver::~frmserver(){ // no need to delete child widgets, Qt does it all for us}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -