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. QVTKWidgetPlugin not appearing in Qtcreator widget list.
QtWS25 Last Chance

QVTKWidgetPlugin not appearing in Qtcreator widget list.

Scheduled Pinned Locked Moved Solved General and Desktop
vtkqt5.12.xplugin installdesigner plugin
15 Posts 3 Posters 2.3k 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.
  • S Offline
    S Offline
    surajj4837
    wrote on 5 May 2021, 05:13 last edited by surajj4837 5 May 2021, 05:18
    #1

    I m using Ubuntu 20.04 and followed the steps given here to install Qt5.12.6, VTK7.1.1 and PCL1.9.1.
    Further steps for configuration are not in above link so I searched a bit and got this official page as well as this page which shows to copy the generated libQVTKWidgetPlugin.so to /usr/lib/x86_64-linux-gnu/qt5/plugins/designer directory. I did this but still the VTK plugin did not show up in Qt creator.

    Any suggestions on this?

    J 1 Reply Last reply 5 May 2021, 05:18
    0
    • C Online
      C Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 5 May 2021, 05:34 last edited by
      #6

      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.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • S surajj4837
        5 May 2021, 05:13

        I m using Ubuntu 20.04 and followed the steps given here to install Qt5.12.6, VTK7.1.1 and PCL1.9.1.
        Further steps for configuration are not in above link so I searched a bit and got this official page as well as this page which shows to copy the generated libQVTKWidgetPlugin.so to /usr/lib/x86_64-linux-gnu/qt5/plugins/designer directory. I did this but still the VTK plugin did not show up in Qt creator.

        Any suggestions on this?

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 5 May 2021, 05:18 last edited by
        #2

        @surajj4837 Was the plug-in build using same Qt version as was used to build QtCreator.
        Start QtCreator from terminal after setting QT_DEBUG_PLUGINS:

        export QT_DEBUG_PLUGINS=1
        PATH_TO_QT_CREATOR_EXE
        

        and check the output (or post it here).

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • S Offline
          S Offline
          surajj4837
          wrote on 5 May 2021, 05:29 last edited by
          #3

          I used an online Qt installer to install Qt5.12.6. Yes the same Qt version was used to build the plug-in. I opened the qtcreator from terminal after setting the flag, qtcreator has opened and lot of data is printed in terminal. Do you wish to see all of it or any specific?

          1 Reply Last reply
          0
          • C Online
            C Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on 5 May 2021, 05:30 last edited by
            #4

            @surajj4837 said in QVTKWidgetPlugin not appearing in Qtcreator widget list.:

            I used an online Qt installer to install Qt5.12.6. Yes the same Qt version was used to build the plug-in.

            This is not qhat @jsulm told you: "Was the plug-in build using same Qt version as was used to build QtCreator."

            QtCreator != Qt

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            S 1 Reply Last reply 5 May 2021, 05:33
            0
            • C Christian Ehrlicher
              5 May 2021, 05:30

              @surajj4837 said in QVTKWidgetPlugin not appearing in Qtcreator widget list.:

              I used an online Qt installer to install Qt5.12.6. Yes the same Qt version was used to build the plug-in.

              This is not qhat @jsulm told you: "Was the plug-in build using same Qt version as was used to build QtCreator."

              QtCreator != Qt

              S Offline
              S Offline
              surajj4837
              wrote on 5 May 2021, 05:33 last edited by
              #5

              @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.

              J 1 Reply Last reply 5 May 2021, 05:41
              0
              • C Online
                C Online
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on 5 May 2021, 05:34 last edited by
                #6

                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.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                3
                • S surajj4837
                  5 May 2021, 05:33

                  @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.

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 5 May 2021, 05:41 last edited by
                  #7

                  @surajj4837 Please post what "About Qt Creator..." dialog shows...

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  S 1 Reply Last reply 5 May 2021, 05:41
                  0
                  • J jsulm
                    5 May 2021, 05:41

                    @surajj4837 Please post what "About Qt Creator..." dialog shows...

                    S Offline
                    S Offline
                    surajj4837
                    wrote on 5 May 2021, 05:41 last edited by
                    #8

                    @jsulm

                    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.
                    
                    J 1 Reply Last reply 5 May 2021, 05:44
                    0
                    • S surajj4837
                      5 May 2021, 05:41

                      @jsulm

                      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.
                      
                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 5 May 2021, 05:44 last edited by
                      #9

                      @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.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        surajj4837
                        wrote on 5 May 2021, 05:47 last edited by surajj4837 5 May 2021, 05:48
                        #10

                        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?

                        J 1 Reply Last reply 5 May 2021, 05:52
                        0
                        • S surajj4837
                          5 May 2021, 05:47

                          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?

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 5 May 2021, 05:52 last edited by
                          #11

                          @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.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            surajj4837
                            wrote on 5 May 2021, 09:02 last edited by
                            #12

                            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.
                            325ae110-4fbd-4342-a23e-61f1445f8440-image.png

                            J 1 Reply Last reply 5 May 2021, 09:15
                            0
                            • S surajj4837
                              5 May 2021, 09:02

                              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.
                              325ae110-4fbd-4342-a23e-61f1445f8440-image.png

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 5 May 2021, 09:15 last edited by
                              #13

                              @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_EXE

                              and check the output (or post it here).

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                surajj4837
                                wrote on 5 May 2021, 09:35 last edited by surajj4837 5 May 2021, 09:39
                                #14

                                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):
                                654b6cce-5383-47ce-81ed-37d862fb0e49-image.png

                                1 Reply Last reply
                                1
                                • S Offline
                                  S Offline
                                  surajj4837
                                  wrote on 6 May 2021, 04:22 last edited by surajj4837 5 Jun 2021, 04:34
                                  #15

                                  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?

                                  1 Reply Last reply
                                  0

                                  3/15

                                  5 May 2021, 05:29

                                  12 unread
                                  • Login

                                  • Login or register to search.
                                  3 out of 15
                                  • First post
                                    3/15
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved