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. Qt Quick Controls FileDialog onAccepted handler can not destroy objects right away on Linux

Qt Quick Controls FileDialog onAccepted handler can not destroy objects right away on Linux

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 754 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    changing
    wrote on last edited by
    #1

    For example, if I open the Qt Quick Controls Texteditor example and add a line of code, destroying some qml object in onAccepted handler, it will not work:
    @FileDialog {
    id: fileDialog
    nameFilters: ["Text files (.txt)", "HTML files (.html)"]
    onAccepted: {
    fontFamilyComboBox.destroy()
    document.fileUrl = fileUrl
    }
    }@
    The fontFamilyComboBox will not be destroyed. However, when I add parameter to destroy(), starting from 1 ms and more, it works. I have this problem only on Linux, with Qt 5.2.1 and 5.3.0. Compiling the same code on Windows or for Android does not have this problem. What could be a possible reason of such behaviour?

    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