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. Do something on QML file created
Forum Update on Monday, May 27th 2025

Do something on QML file created

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 343 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.
  • H Offline
    H Offline
    hdeclerck
    wrote on last edited by hdeclerck
    #1

    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.HilkJ 1 Reply Last reply
    0
    • H 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.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      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


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

      1 Reply Last reply
      3
      • H Offline
        H Offline
        hdeclerck
        wrote on last edited by
        #3

        Thank you for the help, that looks promising!

        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