Unsolved How to create a custom plugin widget inherited from QGraphicsView and QGraphicScene for QtDesigner?
-
Hi,
My requirement is that I want a custom widget plugin for qt designer in which I could drag and drop other widgets like standard or custom widgets. And I could apply the rotation for that widgets group.
To achieve the same I have tried with QGraphicsView and QGraphicsScene but unable to achieve my requirement.
Kindly suggest for the same.
Thanks,
Pradson -
Not really a plugin... but a work around...
You can use Promoted Widgets >
You can specify base class & give it the name of your c++ widget name & pass header file import as if you were importing it in your source file.
Qt will then use that when compiling/etc.
U wont have ur custom options/etc in designer/creator, but when widget shows up it will use ur base class & u can use it then in src.
Hope this kinda helps?