QVTKWidgetPlugin not appearing in Qtcreator widget list.
-
@Christian-Ehrlicher I have not built qtcreator explicitly, the online installer did it. Currently only 1 qt version(5.12.6) I have in my system that was used to build plug-in also.
-
Again: the plugin must be build with the same Qt version as QtCreator was build so it can be used in QtCreator. It doesn't matter which Qt version you're using to build your app.
-
@surajj4837 Please post what "About Qt Creator..." dialog shows...
-
Qt Creator 4.10.2 Based on Qt 5.13.2 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) Built on Nov 4 2019 04:13:16 From revision 7c61e936ce Copyright 2008-2019 The Qt Company Ltd. All rights reserved. The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-
@surajj4837 said in QVTKWidgetPlugin not appearing in Qtcreator widget list.:
Based on Qt 5.13.2
As you can see QtCreator was built using Qt 5.13.2.
You will need to build the plug-in with this Qt version. -
I see what you @jsulm and @Christian-Ehrlicher were saying earlier. Unfortunately this qtcreator build dependency I was not knowing, it was not asked during installation. Now I will build the plugin using Qt 5.13.2.
Will this create any conflict with current Qt version I m using? Or shall I use Qt 5.13.2 for my project as well to avoid 2 Qt versions in system? -
@surajj4837 said in QVTKWidgetPlugin not appearing in Qtcreator widget list.:
Will this create any conflict with current Qt version I m using?
No, it should not. The plug-in is only used in Qt Designer, your app will use the actual VTK library built with your Qt version.
-
I tried building the VTK7.1.1 with Qt 5.13.2. I copied the libQVTKWidgetPlugin.so to designer folder. But still the QtCreator is not showing the widget. Following screenshot how the VTK build configuration.
-
@surajj4837 Then please do what I suggested before:
Start QtCreator from terminal after setting QT_DEBUG_PLUGINS:export QT_DEBUG_PLUGINS=1
PATH_TO_QT_CREATOR_EXEand check the output (or post it here).
-
I tried one thing, inside QtCreator directory also there is a designer folder (QtCreator/lib/Qt/plugins/designer), I copied the generated libQVTKWidgetPlugin.so inside it, now the QVTK widget plugin is visible in QtCreator(lower left corner in below screenshot):
-
After building the VTK using Qt5.13.2, I uninstalled the Qt version since I already have 5.12.6. While running a sample code to check the VTK plugin I m getting the following linker error:
09:49:20: Running steps for project pcl_visualizer... 09:49:20: Starting: "/usr/bin/cmake" --build . --target all [ 20%] Automatic MOC and UIC for target pcl_visualizer [ 20%] Built target pcl_visualizer_autogen [ 40%] Linking CXX executable pcl_visualizer /usr/bin/ld: /usr/local/lib/libvtkGUISupportQt-7.1.so.1: undefined reference to `qt_version_tag@Qt_5.13' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/pcl_visualizer.dir/build.make:254: pcl_visualizer] Error 1 make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/pcl_visualizer.dir/all] Error 2 make: *** [Makefile:84: all] Error 2 09:49:21: The process "/usr/bin/cmake" exited with code 2. Error while building/deploying project pcl_visualizer (kit: Desktop Qt 5.12.6 GCC 64bit) When executing step "CMake Build" 09:49:21: Elapsed time: 00:01.
I m using CMake system and I tried the solution given here but it is not working.
Should I create a different thread for this?