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

📄 main.cpp

📁 嵌入式LINUX的智能家居系统源码
💻 CPP
字号:
#include <qapplication.h>#include "pda_form.h"#include "bt.h"#include "pda_cmd.h"int main( int argc, char ** argv ){       QApplication a( argc, argv );    pda_Form w;    w.resize(640,480);    w.show();    a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );    BT bt;    pda_cmd cmd;//connect BT and cmd    a.connect( &bt, SIGNAL( sig_cmd(int)), &cmd, SLOT( pda_cmd_proxy(int)));    a.connect( &cmd, SIGNAL( sig_cmd_ker(int )), &bt, SLOT( write_BT(int)));    a.connect( &cmd, SIGNAL( sig_cmd_BT(int )), &bt, SLOT( switcher(int )));//connect cmd and window    a.connect( &w, SIGNAL( sig_cmd(int)), &cmd, SLOT( pda_cmd_proxy(int )));    a.connect( &cmd, SIGNAL( sig_cmd_local_ui(int )), &w, SLOT( switcher(int )));//    a.connect( &w, SIGNAL( sig_start_BT() ), &bt, SLOT( setup_connection() ) );//    a.connect( &w, SIGNAL( sig_stop_BT() ), &bt, SLOT( stop_connection() ) );//    a.connect( &w, SIGNAL( sig_cmd(int) ), &bt, SLOT( write_BT(int) ) );//    a.connect( &bt, SIGNAL( sig_cmd(int) ), &w, SLOT( switcher(int) ) );    //bt.setup_connection();            return a.exec();}

⌨️ 快捷键说明

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