nakka soft world !

[QML] Undefined, Null 체크 본문

프로그래밍언어/QT-QML

[QML] Undefined, Null 체크

nakka 2014. 11. 4. 20:55
728x90
QML에서 Undefined걸러내기.

typeof(   ) !== 'undefined' 로 체크

예)
if (typeof(item) !== 'undefined'){
   item.activationComplete();
}


728x90

'프로그래밍언어 > QT-QML' 카테고리의 다른 글

[Linux] Ubuntu에서 PATH 설정하는 법  (2) 2021.05.14
PyQt QtString과 Py String  (0) 2016.09.24
[QML] Garbage collector  (0) 2015.07.07
[QML] Slider Custom Style  (0) 2015.04.16
[QML] Loader  (0) 2014.11.04
Comments