어플 만드느라 너무 몰아서 코딩했더니 뭘 어디서 검색해서 가져온건지 기억이 안난다.
최신순으로 기억나는것 부터 기록해야지 !
applicationui.cpp
#include <bb/ApplicationInfo>... // Create scene document from main.qml asset, the parent is set // to ensure the document gets destroyed properly at shut down. QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this); //Application info bb::ApplicationInfo appInfo; QString versionNumber = appInfo.version(); // Create scene document from main.qml asset, the parent is set // to ensure the document gets destroyed properly at shut down. QDeclarativePropertyMap* appProperties = new QDeclarativePropertyMap; appProperties->insert("name", QVariant(appInfo.title())); appProperties->insert("version", QVariant(appInfo.version())); appProperties->insert("description", QVariant(appInfo.description())); qml->setContextProperty("AppInfo", appProperties);
main.qml
qsTr("Version: %1").arg(AppInfo.version)
※ 참고한 사이트
https://supportforums.blackberry.com/t5/Native-Development/Version-Number-in-Label-Application-Info/td-p/2893184
jQuery | 동영상 썸네일 (0) | 2017.03.17 |
---|---|
BlackBerry | 개발환경 (0) | 2016.11.15 |
BlackBerry | 파일 입출력 (QFile) (0) | 2016.10.28 |
BlackBerry | SystemDialog 추가하기 (0) | 2016.10.27 |
jQuery | 이미지 숨기기 (0) | 2016.10.16 |
VBA | 셀 값 클립보드로 복사하기 (0) | 2016.10.15 |
JAVA | 웹에있는 PDF 저장하기 (PDFBox) (0) | 2015.09.05 |
JAVA | 인터넷 쿠키 허용하기 (URLConnection enable cookie) (0) | 2015.09.04 |