mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update
This commit is contained in:
parent
6eacce97a9
commit
e3a0357214
@ -1,28 +1,11 @@
|
||||
#include "mainwindow.h"
|
||||
#include <QQtApplication>
|
||||
|
||||
#include "qqtsubprotocoltest.h"
|
||||
|
||||
|
||||
int main ( int argc, char* argv[] )
|
||||
{
|
||||
QQtApplication a ( argc, argv );
|
||||
|
||||
//测试一下,数据字段不够,内部如何处理。
|
||||
QQtSubProtocolTest* p = new QQtSubProtocolTest();
|
||||
QByteArray bytes = "CCCCCCCC";
|
||||
|
||||
//这个例程里,讲解了QQt Application Framework里network module的功能。
|
||||
//这是一个例子,
|
||||
//这个app处在一个计算机节点上,这个节点有很多网络功能。
|
||||
//1. 和下位机通过串口通信 收发信令
|
||||
//2. 和网络服务器通过网络通信 收发数据
|
||||
//3. 和用户通过串口通信 收发用户命令
|
||||
//4. 和局域网用户通过局域网通信 收发局域网数据
|
||||
//在这个计算机节点上,这个app通信功能繁重,然而,它还有复杂的页面功能,如此繁重的功能累加,这一个app能不能胜任?答案是能,而且高效率。
|
||||
//有很多人,喜欢把这块放到线程中处理,完全没必要,因为Qt Library已经使用了高效的epoll、select、multi-thread做了这些工作,你写个app为什么要重做一遍?这是不是很不合理?
|
||||
//LibQQt就架设在Qt Runtime和Qt App之间,提供QQt Application Framework(请参照Android操作系统分层)。
|
||||
|
||||
MainWindow w;
|
||||
w.show();
|
||||
|
||||
|
@ -21,32 +21,16 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
SOURCES -= \
|
||||
qqtlanprotocol.cpp
|
||||
|
||||
HEADERS -= \
|
||||
qqtlanprotocol.h
|
||||
|
||||
SOURCES += \
|
||||
main.cpp \
|
||||
mainwindow.cpp \
|
||||
qqtclientprotocol.cpp \
|
||||
qqtcloudprotocol.cpp \
|
||||
qqtnetworkmessage.cpp \
|
||||
qqtserialmessage.cpp \
|
||||
qqtuserserialprotocol.cpp \
|
||||
qqtsubprotocoltest.cpp \
|
||||
qqtclient2protocol.cpp
|
||||
|
||||
|
||||
HEADERS += \
|
||||
mainwindow.h \
|
||||
qqtclientprotocol.h \
|
||||
qqtcloudprotocol.h \
|
||||
qqtnetworkmessage.h \
|
||||
qqtserialmessage.h \
|
||||
qqtuserserialprotocol.h \
|
||||
qqtsubprotocoltest.h \
|
||||
qqtclient2protocol.h
|
||||
|
||||
FORMS += \
|
||||
@ -62,13 +46,6 @@ system("touch main.cpp")
|
||||
#-------------------------------------------------
|
||||
include(../../src/app_base_manager.pri)
|
||||
|
||||
contains (DEFINES, __BLUETOOTH__){
|
||||
SOURCES += \
|
||||
quserbluetoothprotocol.cpp
|
||||
HEADERS += \
|
||||
quserbluetoothprotocol.h
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
|
@ -1,9 +1,26 @@
|
||||
#include "mainwindow.h"
|
||||
#include <QApplication>
|
||||
#include <QQtApplication>
|
||||
#include "qqtsubprotocoltest.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
int main ( int argc, char* argv[] )
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
QQtApplication a ( argc, argv );
|
||||
|
||||
//测试一下,数据字段不够,内部如何处理。
|
||||
QQtSubProtocolTest* p = new QQtSubProtocolTest();
|
||||
QByteArray bytes = "CCCCCCCC";
|
||||
|
||||
//这个例程里,讲解了QQt Application Framework里network module的功能。
|
||||
//这是一个例子,
|
||||
//这个app处在一个计算机节点上,这个节点有很多网络功能。
|
||||
//1. 和下位机通过串口通信 收发信令
|
||||
//2. 和网络服务器通过网络通信 收发数据
|
||||
//3. 和用户通过串口通信 收发用户命令
|
||||
//4. 和局域网用户通过局域网通信 收发局域网数据
|
||||
//在这个计算机节点上,这个app通信功能繁重,然而,它还有复杂的页面功能,如此繁重的功能累加,这一个app能不能胜任?答案是能,而且高效率。
|
||||
//有很多人,喜欢把这块放到线程中处理,完全没必要,因为Qt Library已经使用了高效的epoll、select、multi-thread做了这些工作,你写个app为什么要重做一遍?这是不是很不合理?
|
||||
//LibQQt就架设在Qt Runtime和Qt App之间,提供QQt Application Framework(请参照Android操作系统分层)。
|
||||
|
||||
MainWindow w;
|
||||
w.show();
|
||||
|
||||
|
@ -21,6 +21,26 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
# In order to do so, uncomment the following line.
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
SOURCES -= \
|
||||
qqtlanprotocol.cpp
|
||||
|
||||
HEADERS -= \
|
||||
qqtlanprotocol.h
|
||||
|
||||
SOURCES += \
|
||||
qqtcloudprotocol.cpp \
|
||||
qqtnetworkmessage.cpp \
|
||||
qqtserialmessage.cpp \
|
||||
qqtuserserialprotocol.cpp \
|
||||
qqtsubprotocoltest.cpp
|
||||
|
||||
|
||||
HEADERS += \
|
||||
qqtcloudprotocol.h \
|
||||
qqtnetworkmessage.h \
|
||||
qqtserialmessage.h \
|
||||
qqtuserserialprotocol.h \
|
||||
qqtsubprotocoltest.h
|
||||
|
||||
|
||||
SOURCES += \
|
||||
@ -36,3 +56,19 @@ FORMS += \
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../src/app_base_manager.pri)
|
||||
|
||||
contains (DEFINES, __BLUETOOTH__){
|
||||
SOURCES += \
|
||||
quserbluetoothprotocol.cpp
|
||||
HEADERS += \
|
||||
quserbluetoothprotocol.h
|
||||
}
|
||||
|
0
src/linux_cd_path.sh
Executable file → Normal file
0
src/linux_cd_path.sh
Executable file → Normal file
0
src/linux_cur_path.sh
Executable file → Normal file
0
src/linux_cur_path.sh
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user