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 Updated to NodeBB v4.3 + New Features

Do something on QML file created

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 343 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.
  • H Offline
    H Offline
    hdeclerck
    wrote on 15 Jul 2019, 22:54 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 1 Reply Last reply 16 Jul 2019, 05:18
    0
    • H hdeclerck
      15 Jul 2019, 22:54

      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 Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 16 Jul 2019, 05:18 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 16 Jul 2019, 15:33 last edited by
        #3

        Thank you for the help, that looks promising!

        1 Reply Last reply
        0

        1/3

        15 Jul 2019, 22:54

        • Login

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