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 create a custom plugin widget inherited from QGraphicsView and QGraphicScene for QtDesigner?
QtWS25 Last Chance

How to create a custom plugin widget inherited from QGraphicsView and QGraphicScene for QtDesigner?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 135 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
    Pradson
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dariusz
      wrote on last edited by
      #2

      Not really a plugin... but a work around...

      You can use Promoted Widgets >

      5bea931c-7712-42b5-b54c-4508445da474-image.png

      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?

      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