qml - Application memory increases a lot with a FileDialog: Using Loader this memory is not free -


i have simple qml application open filedialog when button pressed.

i have realized when open filedialog current application memory increased lot (12 mb dialog), have added loader filedialog. therefore, memory increased when open dialog. problem can not free memory, setting loader source "".

my test file:

import qtquick 2.0 import qtquick.controls 1.4  item {     width: 400     height: 400      loader {         id: loaderfiledialog     }      connections {         target: loaderfiledialog.item         onaccepted: {             loaderfiledialog.source = "";             console.log("onaccepted");         }         onrejected: {             loaderfiledialog.source = "";             console.log("oncancel");         }     }      button {         anchors.centerin: parent          width: 100         height: 50          text: "open file";          onclicked: {             loaderfiledialog.source = "qrc:/myfiledialog.qml";             loaderfiledialog.item.visible = true;         }     } } 

and qml file filedialog: myfiledialog.qml

import qtquick 2.1 import qtquick.dialogs 1.0  filedialog {     id: filedialog } 

what doing wrong? idea or suggestion?

thanks lot in advance, diego


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -