Qt_Notes

Common

Connect 

Function define is enough, Do not add argument name.

SIGNAL(finished(QNetworkReply* reply))->

SIGNAL(finished(QNetworkReply*))

---Common End---

Installation 

>Building

http://doc.qt.nokia.com/latest/install-win.html 

configure -platform win32-msvc2010 (or linux-g++-64) 

nmake

nmake confclean


Needs 

>ActivePerl 

for script running 

>Visual Studio 

command nmake or make 

>Build in VS2010 command prompt

if we use VS2008 it might cause some problems when we link to the Qt libraries because the compatibility issue.

x64 binary building: still use win32-msvc(spec)

 

Source download 

http://get.qt.nokia.com/qt/source/ 

---Installation End---


QtCreator 

QMake 

http://developer.qt.nokia.com/doc/qt-4.8/qmake-manual.html 

>Project setting

win32 {SOURCES += hellowin.cpp}

unix {SOURCES += hellounix.cpp}

macx{QMAKE_LFLAGS+=-install_name@executable_path/$$join(TARGET,,lib,.dylib)}


Tips

>RESOURCES need explicit path

-example

TEMPLATE = app

CONFIG += qt debug_and_release stl

QT += declarative

isEmpty(SOURCE_PATH) {

        SOURCE_PATH = ../AdNotificationUI

}

INCLUDEPATH += \

        . \

        $${SOURCE_PATH} \

        $${SOURCE_PATH}/res \

        $${SOURCE_PATH}/res/Image \

DEPENDPATH += \

        $${SOURCE_PATH} \

SOURCES += main.cpp NotificationHubContext.cpp

HEADERS += NotificationHubContext.h

RESOURCES += ../AdNotificationUI/res/AdNotificationUI.qrc

---QtCreator End---

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值