Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Include js in Qtcreator plugin
Forum Updated to NodeBB v4.3 + New Features

Include js in Qtcreator plugin

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtcreator
2 Posts 2 Posters 297 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.
  • V Offline
    V Offline
    Veepee
    wrote on 27 Feb 2020, 12:53 last edited by
    #1

    Hi

    I am developing a QtCreator plugin and i wanted to include an asciidoctor.js file into my plugin. I know js files can be imported as part of qml files. But in my plugin, I have all source and header files as .cpp and .h
    Can someone let me know if this .js file can be included in my source files and the functions in js can be accessed from my source ?

    R 1 Reply Last reply 28 Feb 2020, 18:55
    0
    • V Veepee
      27 Feb 2020, 12:53

      Hi

      I am developing a QtCreator plugin and i wanted to include an asciidoctor.js file into my plugin. I know js files can be imported as part of qml files. But in my plugin, I have all source and header files as .cpp and .h
      Can someone let me know if this .js file can be included in my source files and the functions in js can be accessed from my source ?

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 28 Feb 2020, 18:55 last edited by
      #2

      @Veepee said in Include js in Qtcreator plugin:

      Can someone let me know if this .js file can be included in my source files and the functions in js can be accessed from my source ?

      i guess you could instantiate a separate QJSEngine.....but why??

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      1/2

      27 Feb 2020, 12:53

      • Login

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