Import QtGraphicalEffects plugin



  • Hi,
    I have a qml in which i need to use QtGraphicalEffects but i can't manage in my C++ code to import the plugin.

    I currently have the following plugin imported (mandatory as i use QT 5.7 statically):

    Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
    Q_IMPORT_PLUGIN(QtQuick2Plugin)
    Q_IMPORT_PLUGIN(QtQuickControls1Plugin)
    Q_IMPORT_PLUGIN(QtQuickLayoutsPlugin)
    Q_IMPORT_PLUGIN(QtQuick2WindowPlugin)
    

    In my static build of QT 5.7 , there is in \qml\QtGraphicalEffects\ the file qtgraphicaleffectsplugin.lib so the plugin exists but i don't know how to find the correct name to import it.

    I tried the following without success :

    Q_IMPORT_PLUGIN(QtGraphicalEffectsPlugin)
    

    Any idea ? Is there a way to find any plugin name ?

    Thanks



  • I am using 5.9.1 and this works:

    Q_IMPORT_PLUGIN(QtGraphicalEffectsPlugin)
    Q_IMPORT_PLUGIN(QtGraphicalEffectsPrivatePlugin)
    

    I have to say that I need to look into the symbols of the said libraries in order to know the name to put inside the Q_IMPORT_PLUGIN (say with nm utility).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.