Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Custom widget in Qt designer

Custom widget in Qt designer

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qt designercustom widget
2 Posts 2 Posters 1.2k 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.
  • I Offline
    I Offline
    Ilan
    wrote on 14 Jul 2017, 12:04 last edited by
    #1

    Hi,
    I generated a custom widget and managed to insert it to Qt Designer.
    The problem is that it does not show the widget image even though I created a paintEvent method.
    My question is what method of the widget does the Qt designer use for showing
    the image of the widget ?
    Thanks,
    Ilan

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pablo J. Rogina
      wrote on 8 Aug 2017, 19:39 last edited by Pablo J. Rogina 8 Aug 2017, 19:40
      #2

      @Ilan

      My question is what method of the widget does the Qt designer use for showing

      If you mean Qt Designer showing your custom widget in the toolbox along default widgets (i.e. QLabel, QLineEdit, etc.) I guess you may need to create a plugin for Qt Designer from your custom widget. Qt Designer used a plugin based approach, see here.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      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