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. CustomTestWidget
Qt 6.11 is out! See what's new in the release blog

CustomTestWidget

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 2.0k Views 3 Watching
  • 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.
  • K Offline
    K Offline
    king558
    wrote on last edited by king558
    #1

    I just create a test custom widget. but it doesnt install it as plugins as expected. I am using Qt 5.8.0 free version and did following

    1. Start QtCreator
    2. New Project -> Other Project -> Qt Custom Desginer Widget
    3. After creation this test custom project, I did not change anything.
    4. Following is CustomizeWidget.pro file
    CONFIG      += plugin debug_and_release
    TARGET      = $$qtLibraryTarget(qtestwidgetplugin)
    TEMPLATE    = lib
    
    HEADERS     = qtestwidgetplugin.h
    SOURCES     = qtestwidgetplugin.cpp
    RESOURCES   = icons.qrc
    LIBS        += -L. 
    
    greaterThan(QT_MAJOR_VERSION, 4) {
        QT += designer
    } else {
        CONFIG += designer
    }
    
    target.path = $$[QT_INSTALL_PLUGINS]/designer
    INSTALLS    += target
    
    include(qtestwidget.pri)
    
    1. After build the project. Netherless run qmake or Build All. Both failed copy *.dll to
      C:\Qt\Qt5.8.0\5.8\msvc2015\plugins\designer
    2. In C:\Qt\Qt5.8.0\5.8\msvc2015\plugins\designer is only qaxwidget.dll and qquickwidget.dll. Not mine test dll

    What did I wrong?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Might be a silly question but did you call make install after building your plugin ?`

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Adding to @SGaist
        Or added it as a build step in Projects.
        alt text

        And its not such a silly question as for some reason I assumed if it had
        anything to install it would also do that automatically :)

        1 Reply Last reply
        2
        • K Offline
          K Offline
          king558
          wrote on last edited by king558
          #4

          Thx for all answer. It must be release version to be load by designer, right?

          Another question is

          modified pro file

          CONFIG      += plugin debug_and_release
          TARGET      = $$qtLibraryTarget(qtestwidgetplugin)
          TEMPLATE    = lib
          
          HEADERS     = qtestwidgetplugin.h
          SOURCES     = qtestwidgetplugin.cpp
          RESOURCES   = icons.qrc
          LIBS        += -L. 
          
          greaterThan(QT_MAJOR_VERSION, 4) {
              QT += designer
          } else {
              CONFIG += designer
          }
          
          target.path = $$[QT_INSTALL_PLUGINS]/designer
          
          QMAKE_POST_LINK += xcopy /d/y $$qtLibraryTarget(qtestwidgetplugin) $$(QTCREATOR_BIN_PATH)/plugins/designer
          
          INSTALLS    += target
          
          include(qtestwidget.pri)
          

          it result

          xcopy /d/y qtestwidgetplugin C:\Qt\Qt5.8.0\Tools\QtCreator\bin/plugins/designer Invalid number of parameters

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            It must use the same version of Qt and compiler used to build Qt Creator and yes release.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1

            • Login

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