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

QT Designer plugin

Scheduled Pinned Locked Moved Solved General and Desktop
qt designer
3 Posts 2 Posters 1.3k 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.
  • G Offline
    G Offline
    GrahamL
    wrote on last edited by
    #1

    Hi
    I am starting to develop a Qt designer plugin so that I can use my custom widget in designer.
    The widget consists of a layout containing a single push button.
    I have followed all the guidelines and I can see my custom widget in designer.
    However if I drag it onto a widget in designer I get the outline of the widget but cannot see the contained push button. When an application is run that uses this plugin the push button is visible.
    As I am new to this can someone tell me if I should be able to see the full custom widget in designer

    Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      karlheinzreichel
      wrote on last edited by
      #2

      Maybe you have to create a pixmap from your control (with QWidget::grab() )
      and pass it to the drag&drop mechanism as bitmap ?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GrahamL
        wrote on last edited by
        #3

        Hi
        I have solved the issue
        In the doXml method you need to add a customWidgets section to the xml

        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