Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved Do something on QML file created

    QML and Qt Quick
    2
    3
    136
    Loading More Posts
    • 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.
    • H
      hdeclerck last edited by hdeclerck

      Hi,

      I am new to using QML .Not sure if this is even possible, but I am trying to create an event handler that reacts to new QML files being created on my local filesystem (outside of my current project) and add that filename to a list of filenames in that local folder.

      Thank you for any help!

      J.Hilk 1 Reply Last reply Reply Quote 0
      • J.Hilk
        J.Hilk Moderators @hdeclerck last edited by

        hi @hdeclerck and welcome

        I don't think there's something out of the box for you to use, but you could create your own Qt program to do that, using QFileSystemWatcher class.

        Should work fine, as long as you limit the number of folders watched and do not simply watch the whole partition 😉

        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

        Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply Reply Quote 3
        • H
          hdeclerck last edited by

          Thank you for the help, that looks promising!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post