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 675 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.
  • EmrecpE Offline
    EmrecpE Offline
    Emrecp
    wrote on 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 :)

    jsulmJ 1 Reply Last reply
    0
    • EmrecpE Emrecp

      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 :)

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

      EmrecpE 1 Reply Last reply
      1
      • jsulmJ jsulm

        @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.

        EmrecpE Offline
        EmrecpE Offline
        Emrecp
        wrote on 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

        • Login

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