Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QTcreator 9 or 14 custom plugin on linux

QTcreator 9 or 14 custom plugin on linux

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 3 Posters 424 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.
  • gfxxG Offline
    gfxxG Offline
    gfxx
    wrote on last edited by
    #1

    Dear all, I'm on debian12 , I've compile my custom widget library obtaining a file.so ..... so I copy that file.so on usr/lib/x86_64-linux-gnu/qtcreator/plugins/ folder with sudo ..... for safety i copy the same (whitout using sudo and without root permissions) on usr/lib/x86_64-linux-gnu/qt6/plugins/designer ..... and in usr/lib/x86_64-linux-gnu/qt5/plugins/designer ... too ... but still qtdreator not show me my custom widget ....

    any suggest is appreciated
    regards

    bkt

    1 Reply Last reply
    0
    • gfxxG Offline
      gfxxG Offline
      gfxx
      wrote on last edited by gfxx
      #6

      for first need to copy here: /home/myuser/Qt/5.15.2/gcc_64/plugins/designer/file.so .... (if usr/lib .... is quite equal, need to find tool folder too ... so better a non root installations).
      BUT
      forgot to copy here too .... /home/myuser/Qt/Tools/QtCreator/lib/qtcreator/plugins/file.so

      if 2 different version need to use one only at time OR file.so compiled for QT5 and one for QT6, but you can use only if you compile and use: mycustoWidgetqt5 and other different mycustoWidgetqt6

      these solve the problem.

      bkt

      1 Reply Last reply
      0
      • Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        When you want to use a plugin you have to make sure that the plugin is compiled with the exact same Qt version as QtCreator. It then has to be copied to the designer plugin subdir which is also used by QtCreator.

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

        gfxxG 1 Reply Last reply
        2
        • Christian EhrlicherC Christian Ehrlicher

          When you want to use a plugin you have to make sure that the plugin is compiled with the exact same Qt version as QtCreator. It then has to be copied to the designer plugin subdir which is also used by QtCreator.

          gfxxG Offline
          gfxxG Offline
          gfxx
          wrote on last edited by
          #3

          @Christian-Ehrlicher I recompiled the plugin with qtcreator I use ..... and put xxxx.so in that library .... for chech folder and qtcreator in use I control "help" menù of qtcreator ..... think these is the right way to do ...... but nothing happens ....

          Maybe problem is on /..../home/QT forlder I have a qtcreator version installed from online_installer app ..... but system (debian 12) have QTcreator 9 download and install from debian repo ..... qt framework or debian So can make some confusion on these?

          bkt

          jsulmJ 1 Reply Last reply
          0
          • gfxxG gfxx

            @Christian-Ehrlicher I recompiled the plugin with qtcreator I use ..... and put xxxx.so in that library .... for chech folder and qtcreator in use I control "help" menù of qtcreator ..... think these is the right way to do ...... but nothing happens ....

            Maybe problem is on /..../home/QT forlder I have a qtcreator version installed from online_installer app ..... but system (debian 12) have QTcreator 9 download and install from debian repo ..... qt framework or debian So can make some confusion on these?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @gfxx said in QTcreator 9 or 14 custom plugin on linux:

            So can make some confusion on these?

            Yes.
            Which one do you want to use?
            And again: you have to build the plug-in using same Qt version which was used to build QtCreator you're using.

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

            gfxxG 1 Reply Last reply
            0
            • jsulmJ jsulm

              @gfxx said in QTcreator 9 or 14 custom plugin on linux:

              So can make some confusion on these?

              Yes.
              Which one do you want to use?
              And again: you have to build the plug-in using same Qt version which was used to build QtCreator you're using.

              gfxxG Offline
              gfxxG Offline
              gfxx
              wrote on last edited by
              #5

              @jsulm ok these is done .... I compile plugin with actual Qt6 version installed. .... if choose a different gcc version compiler I understand may not work. Any how not see plugin on my qrcreator .... so I copy all in wrong folder?

              bkt

              1 Reply Last reply
              0
              • gfxxG Offline
                gfxxG Offline
                gfxx
                wrote on last edited by gfxx
                #6

                for first need to copy here: /home/myuser/Qt/5.15.2/gcc_64/plugins/designer/file.so .... (if usr/lib .... is quite equal, need to find tool folder too ... so better a non root installations).
                BUT
                forgot to copy here too .... /home/myuser/Qt/Tools/QtCreator/lib/qtcreator/plugins/file.so

                if 2 different version need to use one only at time OR file.so compiled for QT5 and one for QT6, but you can use only if you compile and use: mycustoWidgetqt5 and other different mycustoWidgetqt6

                these solve the problem.

                bkt

                1 Reply Last reply
                0
                • gfxxG gfxx has marked this topic as solved on

                • Login

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