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. What is the difference between using QPluginLoader and QQmlApplicationEngine::importPlugin?
Forum Updated to NodeBB v4.3 + New Features

What is the difference between using QPluginLoader and QQmlApplicationEngine::importPlugin?

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

    If I manually load the plugin with QPluginLoader and ask the extension to register its types, is that the equivalent of just having the Qml application engine import it itself?

    I ask because I'm going to be instantiating components from these plugins dynamically in my UI and I need to pass information back and forth between my hosting application and the plugins. Do I need to use both? Or is ::importPlugin just a helpful wrapper of QPluginLoader functionality?

    Thanks :)

    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