Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. destroy filedialog does not clear the memory usage in qml
Forum Updated to NodeBB v4.3 + New Features

destroy filedialog does not clear the memory usage in qml

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 130 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qAminzzz
    wrote on last edited by
    #1

    hi
    filedialog uses about 10 mgs and it's not good
    so i created file dialog dynamically and after accept file i destroy that
    but it didn't clear memory usage of file dialog
    why? and what should i do?

    thanks in advance

    code:

    property var fdOpenPicture
    
                onClicked: // my button's signal
                {
                    fdOpenPicture= Qt.createQmlObject('import QtQuick 2.0; import Qt.labs.platform; FileDialog {id: test;
                onAccepted:
                {
                    btnSelectPict.icon.source= currentFile;
                }
    
                onVisibleChanged:
                {
    print("Destroy");
                    if(!visible) btnSelectPict.fdOpenPicture.destroy();
                }
                }',
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved