mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update nullptr build error
This commit is contained in:
parent
2cf523d67e
commit
21f2a2dd26
9
QQt.pro
9
QQt.pro
@ -17,15 +17,13 @@ SUBDIRS = src/qqt.pro
|
||||
#QQt is build
|
||||
#-----------------------------------------------------------------
|
||||
#SUBDIRS += examples/qqtframe3
|
||||
#
|
||||
SUBDIRS += examples/exquisite
|
||||
#SUBDIRS += examples/exquisite
|
||||
#can't support ios
|
||||
#SUBDIRS += examples/qqtprintsupportexample
|
||||
#
|
||||
SUBDIRS += examples/tabwidgetexamples
|
||||
#
|
||||
SUBDIRS += examples/svgtest
|
||||
SUBDIRS += examples/treeviewexample
|
||||
#SUBDIRS += examples/svgtest
|
||||
#SUBDIRS += examples/treeviewexample
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
#need vlcQt libvlc library
|
||||
@ -56,6 +54,7 @@ SUBDIRS += examples/treeviewexample
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
#some example project
|
||||
#maybe demo
|
||||
#-----------------------------------------------------------------
|
||||
#SUBDIRS += examples/cmdwidget
|
||||
#SUBDIRS += examples/VegeTablesPrice
|
||||
|
@ -2,11 +2,11 @@
|
||||
#you can modify this pri to link qqt_library
|
||||
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
QQT_SOURCE_ROOT = $$PWD/../../
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
QQT_SOURCE_ROOT = $$PWD/../../
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
QQT_SOURCE_ROOT = $$PWD/../../
|
||||
}
|
||||
|
||||
#qqt qkit
|
||||
@ -29,7 +29,7 @@ include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#qqt library or qqt source
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
#if you want to build src but not link QQt in your project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#QKIT_PRIVATE from qqt_header.pri
|
||||
|
@ -3,11 +3,12 @@
|
||||
|
||||
#include <qqtwidget.h>
|
||||
#include <qqt-local.h>
|
||||
#include <qqtcore.h>
|
||||
|
||||
class QQTSHARED_EXPORT QQtWifiDBWidget : public QQtWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS(DB_STAT)
|
||||
Q_ENUMS ( DB_STAT )
|
||||
|
||||
public:
|
||||
enum DB_STAT
|
||||
@ -21,11 +22,11 @@ public:
|
||||
Db_SMax
|
||||
};
|
||||
|
||||
explicit QQtWifiDBWidget(QWidget* parent = nullptr);
|
||||
explicit QQtWifiDBWidget ( QWidget* parent = nullptr );
|
||||
virtual ~QQtWifiDBWidget() {}
|
||||
|
||||
void setDB(DB_STAT s);
|
||||
void setDbPixMap(DB_STAT s, QString pixname);
|
||||
void setDB ( DB_STAT s );
|
||||
void setDbPixMap ( DB_STAT s, QString pixname );
|
||||
|
||||
signals:
|
||||
|
||||
|
@ -232,15 +232,15 @@ defineReplace(create_qt_lib_pri){
|
||||
|
||||
################################################
|
||||
##QQt install workflow
|
||||
##used to output sdk, can't support windows and ios
|
||||
################################################
|
||||
#use to output sdk
|
||||
contains(CONFIG, qqt_create_sdk){
|
||||
MODULE_NAME=QQt
|
||||
module_name = $$lower($${MODULE_NAME})
|
||||
|
||||
QQT_BUILD_DIR=$$OUT_PWD/bin
|
||||
#sdk path
|
||||
QQT_SDK_DIR = $$PWD/../sdk
|
||||
QQT_SDK_DIR = $$absolute_path($$PWD/../sdk)
|
||||
message(QQt sdk install here:$${QQT_SDK_DIR})
|
||||
|
||||
QQT_INC_DIR = include/$${MODULE_NAME}
|
||||
|
@ -7,7 +7,7 @@
|
||||
##2017年10月29日08:54:28
|
||||
################################################
|
||||
|
||||
#TARGET must be equals to pro name ? no, TARGET must place before qqt_library.pri
|
||||
#TARGET must be equals to pro name ? no, TARGET must be placeed before qqt_library.pri
|
||||
#qmake pro pri is sequential
|
||||
|
||||
message(Link QQt to $${TARGET} $${QKIT_PRIVATE} \
|
||||
@ -20,7 +20,7 @@ contains(CONFIG, link_from_build) {
|
||||
QQT_BUILD_OUT_PWD = QQt/$${QT_VERSION}/$${SYSNAME}/$${BUILD}/src/$${DESTDIR}
|
||||
QQT_LIB_PWD = $${QQT_BUILD_ROOT}/$${QQT_BUILD_OUT_PWD}
|
||||
} else {
|
||||
QQT_LIB_PWD = $$PWD/../sdk/lib
|
||||
QQT_LIB_PWD = $$absolute_path($$PWD/../sdk/lib)
|
||||
}
|
||||
message (Link QQt from: $$QQT_LIB_PWD)
|
||||
|
||||
@ -69,6 +69,7 @@ equals(QKIT_PRIVATE, macOS) {
|
||||
QMAKE_POST_LINK += cd bin/$${TARGET}.app/Contents/Frameworks/QQt.framework &&
|
||||
QMAKE_POST_LINK += $${command} &&
|
||||
QMAKE_POST_LINK += cd $${OUT_PWD} &&
|
||||
#Qt Creator create framework but use absolute path to make link
|
||||
#QMAKE_POST_LINK += cp -rf $${QQT_LIB_PWD}/QQt.framework \
|
||||
# bin/$${TARGET}.app/Contents/Frameworks &&
|
||||
QMAKE_POST_LINK += install_name_tool -change QQt.framework/Versions/$${QQT_MAJOR_VERSION}/QQt \
|
||||
|
Loading…
x
Reference in New Issue
Block a user