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. Where can I find an example of how QGenericPlugin::create() works?
Forum Updated to NodeBB v4.3 + New Features

Where can I find an example of how QGenericPlugin::create() works?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 531 Views 1 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.
  • enjoysmathE Offline
    enjoysmathE Offline
    enjoysmath
    wrote on last edited by
    #1

    Here is an app I have written in Python:

    0_1551312011955_BananaCatsScreenshot2.png

    Problem is when I take a functorial image and reflect the positions of each object / morphism in the domain, to each's corresponding image in the codomain, the codomain objects move with visible lag and it looks bad. So as you can imagine as the complexity and constraints of a commutative diagram grow, this software is going to suck to use. So I'm porting it to C++ using QtCreator.

    Now I have created a C++ Qt Plugin type library so it has a header/cpp file with class derived from QGenericPlugin. Is there an example on how to implement the create() function which I believe returns an object derived from QObject?

    What if you need to return a QWidget as well? I need a simple example to guide me :)

    For instance, "functor" will be a plugin. Adding plugins to the app shouldn't require a rebuild of all the code. So I like this way of doing things.

    https://github.com/enjoysmath
    https://math.stackexchange.com/users/26327/exercisingmathematician

    jsulmJ 1 Reply Last reply
    0
    • enjoysmathE enjoysmath

      Here is an app I have written in Python:

      0_1551312011955_BananaCatsScreenshot2.png

      Problem is when I take a functorial image and reflect the positions of each object / morphism in the domain, to each's corresponding image in the codomain, the codomain objects move with visible lag and it looks bad. So as you can imagine as the complexity and constraints of a commutative diagram grow, this software is going to suck to use. So I'm porting it to C++ using QtCreator.

      Now I have created a C++ Qt Plugin type library so it has a header/cpp file with class derived from QGenericPlugin. Is there an example on how to implement the create() function which I believe returns an object derived from QObject?

      What if you need to return a QWidget as well? I need a simple example to guide me :)

      For instance, "functor" will be a plugin. Adding plugins to the app shouldn't require a rebuild of all the code. So I like this way of doing things.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @enjoysmath Did you see this: https://doc.qt.io/qt-5/plugins-howto.html ?
      There are some links to examples.

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

      1 Reply Last reply
      3

      • Login

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