frmserver.cpp
资源名称:Webserver.rar [点击查看]
上传用户:yayahi0755
上传日期:2022-05-14
资源大小:876k
文件大小:1k
源码类别:
浏览器
开发平台:
Unix_Linux
- #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
- }