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. how to change the qml libaries path of the qt default path?
QtWS25 Last Chance

how to change the qml libaries path of the qt default path?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 47 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.
  • nicker playerN Offline
    nicker playerN Offline
    nicker player
    wrote on last edited by
    #1

    Ive tested the code below.but not work.the qt qml libs only was setted to the root of the qapp could work.if I moved these files into the plugins/xml I've created ,it couldnt work.so how to get the right way.
    12e3a611-b6fe-451d-8351-ac4a07aa2201-image.png

      QmlEngine* m_Engine = NULL;
       m_Engine = qquickwidget->engine();
       QString t_app_path =  QApplication::applicationDirPath();
       if(!m_Engine->pluginPathList().contains("/plugins/xml")){
           m_Engine->addPluginPath(t_app_path+"/plugins/xml");
       }
    
    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