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. Python Qt Designer Custom Widget with PaintEvent
Forum Updated to NodeBB v4.3 + New Features

Python Qt Designer Custom Widget with PaintEvent

Scheduled Pinned Locked Moved Unsolved General and Desktop
painteventqt designercustom widgetwidget
3 Posts 2 Posters 576 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.
  • E Offline
    E Offline
    Emrecp
    wrote on 9 Mar 2021, 15:18 last edited by
    #1

    Hello,
    I have custom widget, I created it with coding. Using paintEvent to draw something special.
    How Can I use my widget on Qt Designer for design?

    As I know there is no support paintEvent on Qt Designer for python

    Thanks :)

    J 1 Reply Last reply 9 Mar 2021, 16:10
    0
    • E Emrecp
      9 Mar 2021, 15:18

      Hello,
      I have custom widget, I created it with coding. Using paintEvent to draw something special.
      How Can I use my widget on Qt Designer for design?

      As I know there is no support paintEvent on Qt Designer for python

      Thanks :)

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 9 Mar 2021, 16:10 last edited by
      #2

      @Emrecp said in Python Qt Designer Custom Widget with PaintEvent:

      How Can I use my widget on Qt Designer for design?

      You can use the "promote" feature, see https://doc.qt.io/qt-5/designer-using-custom-widgets.html
      If you want to be able to select and use your widget directly in designer you will need to create a designer plug-in.

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

      E 1 Reply Last reply 9 Mar 2021, 16:53
      1
      • J jsulm
        9 Mar 2021, 16:10

        @Emrecp said in Python Qt Designer Custom Widget with PaintEvent:

        How Can I use my widget on Qt Designer for design?

        You can use the "promote" feature, see https://doc.qt.io/qt-5/designer-using-custom-widgets.html
        If you want to be able to select and use your widget directly in designer you will need to create a designer plug-in.

        E Offline
        E Offline
        Emrecp
        wrote on 9 Mar 2021, 16:53 last edited by
        #3

        @jsulm I think this is for C++, I don't know how to use it on Python?

        1 Reply Last reply
        0

        2/3

        9 Mar 2021, 16:10

        • Login

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