목록QML (4)
nakka soft world !
qml garbage collectorqml 가비지 콜렉터 사용법은 Grabage collect하고 싶은 시점에 gc()라고 넣기만 하면 된다.효과는 있으나 gc하는 동안 시스템에 따라 약간의 렉이 걸릴 수도 있다. http://doc.qt.io/qt-5/qtqml-javascript-qmlglobalobject.html
import QtQuick 2.0 import QtQuick.Controls 1.1 import QtQuick.Controls.Styles 1.1 Slider { id: dvrSlider height: parent.height * 1.4 updateValueWhileDragging : false //* Knob Status property string _knobStatus: { if(pressed){ return "pressed"; }else if(hovered ){ return "focused"; }else{ return "normal"; } } //* Knob Style property color knobColor: dvrSlider[_knobStatus+"KnobColor"]//root[contro..
QML에서 Undefined걸러내기. typeof( ) !== 'undefined' 로 체크 예)if (typeof(item) !== 'undefined'){ item.activationComplete();}
LoaderComponent의 Create를 해주는 Object.active : false로 지정시 부모 Component가 Create되더라도 자동 Create되지 않는다.APP에서 Create시점 Control이 가능해진다..active = true로 하는 순간 Create시작함. Loader { id: programRecordPopupLoader active:false sourceComponent : Component { ProgramRecordPopup{ id: programRecordPopup visible : false } } }