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. How to integrate plugin, created using Qt Custom Designer Widget, into a project?
Forum Updated to NodeBB v4.3 + New Features

How to integrate plugin, created using Qt Custom Designer Widget, into a project?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 290 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.
  • P Offline
    P Offline
    priskusman
    wrote on last edited by priskusman
    #1

    Hello society!
    I am trying to add my custom widget created using Qt Custom Designer Widget in separate project.
    The widget is added using Promotion successfully
    But when I am trying to add widget to toolBar among other buttons etc. I failed.

    More details:
    I repeat actions in that video:
    https://www.youtube.com/watch?v=bc13VWTPMBU
    My general and plugin projects are in Debug mode
    I add 1 step in Build with Make argument: install
    30b4a63d-0913-4ef1-858a-b5a73df8a0ac-изображение.png
    Created ddl file from C:\Qt\Qt5.12.12\5.12.12\mingw73_64\plugins\designer
    I copied to
    C:\Qt\Qt5.12.12\Tools\QtCreator\bin\plugins\designer
    I don't have such directory as noticed in video:
    C:\Qt\Qt5.12.12\Tools\QtCreator\lib\Qt\plugins\designer
    so I copied dll only into one place.
    But when I refreshed Plugin information I have
    ab356ea8-d3bb-4122-a55e-4f5e809244d9-изображение.png
    What is going on here?
    Thanks!!

    JonBJ 1 Reply Last reply
    0
    • P priskusman

      Hello society!
      I am trying to add my custom widget created using Qt Custom Designer Widget in separate project.
      The widget is added using Promotion successfully
      But when I am trying to add widget to toolBar among other buttons etc. I failed.

      More details:
      I repeat actions in that video:
      https://www.youtube.com/watch?v=bc13VWTPMBU
      My general and plugin projects are in Debug mode
      I add 1 step in Build with Make argument: install
      30b4a63d-0913-4ef1-858a-b5a73df8a0ac-изображение.png
      Created ddl file from C:\Qt\Qt5.12.12\5.12.12\mingw73_64\plugins\designer
      I copied to
      C:\Qt\Qt5.12.12\Tools\QtCreator\bin\plugins\designer
      I don't have such directory as noticed in video:
      C:\Qt\Qt5.12.12\Tools\QtCreator\lib\Qt\plugins\designer
      so I copied dll only into one place.
      But when I refreshed Plugin information I have
      ab356ea8-d3bb-4122-a55e-4f5e809244d9-изображение.png
      What is going on here?
      Thanks!!

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @priskusman said in Where to create my custom button instance in purpose to get it among automaticaly created entities in graphical form?:

      inherited from QPushButton

      Hello and welcome.

      In C++ the convention is to write any sub-class in its own .cpp and .h files. Qt (not being a language) is no different, it may be even more important to do it this way for Qt.

      I'm afraid I don't understand how that relates/what the problem is from everything else you have written.

      P 1 Reply Last reply
      0
      • JonBJ JonB

        @priskusman said in Where to create my custom button instance in purpose to get it among automaticaly created entities in graphical form?:

        inherited from QPushButton

        Hello and welcome.

        In C++ the convention is to write any sub-class in its own .cpp and .h files. Qt (not being a language) is no different, it may be even more important to do it this way for Qt.

        I'm afraid I don't understand how that relates/what the problem is from everything else you have written.

        P Offline
        P Offline
        priskusman
        wrote on last edited by priskusman
        #3

        @JonB Thank you for answer! I have promoted farther since I posted that question. But now I stack on integrating my custom widget into other project. I guess it would more appropriate if I change title and the question then.

        1 Reply Last reply
        0

        • Login

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