1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

add link QQt source test

This commit is contained in:
tianduanrui 2018-07-28 22:28:19 +08:00
parent 92b5218831
commit 36d06a24cb
7 changed files with 139 additions and 26 deletions

View File

@ -1,25 +1,25 @@
##-----------------------------------------------------------------
##LibQQt样例工程入口
##不能随便编译,初始设置要求比较严格,请按照规程设置完整
##Example要编译必须先编译完LibQQt
##本Library基于Multi-link技术Example也是
##Example工程也就是App工程和Library工程不能放在一起编译,否则会引发 first time bug (add_deploy_library_on_mac).
##Library工程组和App工程组分开编译不会引发这个bug
##-----------------------------------------------------------------
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += test/colorwidgettest
#SUBDIRS += demo/QQtClientCreator
#SUBDIRS += demo/QQtServerCreator
#SUBDIRS += demo/QQtRoseMonitor
#
SUBDIRS += examples/exquisite
#SUBDIRS += test/voicetest
#SUBDIRS += test/giftest
#SUBDIRS += test/QQtCustomTitleBarMainFormTest
#高级测试,谨慎使用
#SUBDIRS += test/singletonapptest
#SUBDIRS += test/namedpipetest
#SUBDIRS += test/sharedmemorytest
##-----------------------------------------------------------------
##LibQQt样例工程入口
##不能随便编译,初始设置要求比较严格,请按照规程设置完整
##Example要编译必须先编译完LibQQt
##本Library基于Multi-link技术Example也是
##Example工程也就是App工程和Library工程不能放在一起编译,否则会引发 first time bug (add_deploy_library_on_mac).
##Library工程组和App工程组分开编译不会引发这个bug
##-----------------------------------------------------------------
TEMPLATE = subdirs
CONFIG += ordered
#SUBDIRS += test/LinkQQtSourceTest
#SUBDIRS += test/colorwidgettest
#SUBDIRS += demo/QQtClientCreator
#SUBDIRS += demo/QQtServerCreator
#SUBDIRS += demo/QQtRoseMonitor
#SUBDIRS += examples/exquisite
#SUBDIRS += test/voicetest
#SUBDIRS += test/giftest
#SUBDIRS += test/QQtCustomTitleBarMainFormTest
#高级测试,谨慎使用
#SUBDIRS += test/singletonapptest
#SUBDIRS += test/namedpipetest
#SUBDIRS += test/sharedmemorytest

@ -1 +1 @@
Subproject commit d8126af2eb1bc12816f73c01ac22b73d6bffcc62
Subproject commit 8a3dad1b85b1eec64b555bfe1fab0a100ab2c6c9

View File

@ -0,0 +1,45 @@
#-------------------------------------------------
#
# Project created by QtCreator 2018-07-28T21:43:50
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = LinkQQtSourceTest
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# 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 += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
FORMS += \
mainwindow.ui
CONFIG += mobility
MOBILITY =
include (../../multi-link/add_base_manager.pri)
add_version(1,0,0,0)
add_deploy()
#不链接Library而是include QQt.pri source
#add_dependent_manager(QQt)
include (../../QQt.pri)

View File

@ -0,0 +1,11 @@
#include "mainwindow.h"
#include <QQtApplication>
int main ( int argc, char* argv[] )
{
QQtApplication a ( argc, argv );
MainWindow w;
w.show();
return a.exec();
}

View File

@ -0,0 +1,14 @@
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}

View File

@ -0,0 +1,22 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H

View File

@ -0,0 +1,21 @@
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>480</height>
</rect>
</property>
<property name="windowTitle" >
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralWidget" />
</widget>
<layoutDefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>