I installed Qt 6.5 in Debian and created a custom widget (plugin) with Qt Creator. Where should I copy the compiled .so file so that Qt Designer can see it among the widgets ?
I installed Qt 6.5 in Debian and created a custom widget (plugin) with Qt Creator. Where should I copy the compiled .so file so that Qt Designer can see it among the widgets ?
https://doc.qt.io/qtcreator/adding-plugins.html
It is considered rude to post the same question to multiple forums.
Capture.PNG
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
I've seen this document before, but it's inaccurate as it doesn't exist in /opt/Qt/6.5.0/gcc_64/bin/plugins/designer. Instead, it exists in /opt/Qt/6.5.0/gcc_64/plugins/designer/
I put my .so plugin in the folder but in Qt Designer going from the menu: Tools > Form Editor... > About Qt Designer Plugins the copied plugin is not displayed, even by refreshing.
Added after 1 14 minutes:
I apologize
Last edited by giorgik; 14th May 2023 at 19:43.
Have you searched from "/" to see if there are any other Qt directories? Or alternatively, have you executed "which designer" to find the executable's location?
Last edited by d_stranz; 15th May 2023 at 17:24.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
I'm giving up, I've tried them all, I've also tried again on Windows 10 and nothing has been resolved. I'm bored with Qt, they don't know how to set up a precise environment, with the right versions for its tools.
QtCreator uses its own Qt and QtDesigner package. Place your files in the <Qt parent directory>/QtCreator/lib/Qt/plugins/designer directory.
d_stranz (16th May 2023)
Last edited by giorgik; 16th May 2023 at 22:18. Reason: updated contents
I basically work under Windows but show the structure of the /usr/bin/qtcreator directory.
P.S.
In Qt Creator choose from menu : Help -> System Information.
In section Library Info You can see where is located Qt used by Qt Creator.
Last edited by Lesiok; 17th May 2023 at 07:08.
Thanks for the advice, I'll try to see from the menu. I did as you told me. I am attaching the document in question
cartelle_Qt.txt
so where ? I found: /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/
I put my plugin in the correct folder that I listed here, and here's what I see:
Istantanea_mio_plugin.jpgWhat did I do wrong in creating the plugin ?Qt Code:
Failed to extract plugin metadata...To copy to clipboard, switch view to plain text mode
Last edited by giorgik; 17th May 2023 at 12:16. Reason: updated contents
Bookmarks