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. Exposing js file in qmldir
Qt 6.11 is out! See what's new in the release blog

Exposing js file in qmldir

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 3.0k 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.
  • M Offline
    M Offline
    Merinas
    wrote on last edited by
    #1

    Hi,

    I'm writing a qml plugin and I want to exposed in a qmldir some javascript file. I haven't found how to do it. I'm not event sure it's possible. So how do you suggest I could do it otherwise ?
    Thanks

    Merinas

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chrisadams
      wrote on last edited by
      #2

      In Qt5 you can - see: see http://qt-project.org/doc/qt-5.0/qtqml/qtqml-modules-qmldir.html for more information about JavaScript Resource Files in modules.

      Cheers,
      Chris.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Merinas
        wrote on last edited by
        #3

        Thanks. So It's one more reason to prt my project to Qt5.

        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