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 [SOLVED]

Custom widget [SOLVED]

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 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.
  • J Offline
    J Offline
    jarosda
    wrote on last edited by
    #1

    Hi guys,
    I'd like to ask you what is the easiest way, or what ways exist, how to use custom widget in designer in Qt Creator. By custom widget I mean subclassed QWidget (for example form with several buttons). I am able to use it in code, but I don't know how to use it via designer. Thanks for advice in advance.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alizadeh91
      wrote on last edited by
      #2

      There is two way for this:

      1. Promote your widget in qtdesigner. put a simple widget in form and right click on it and select promote
      2. Write a plugin for that (there is a example in qt for that)
      1 Reply Last reply
      0
      • G Offline
        G Offline
        goblincoding
        wrote on last edited by
        #3

        The "promote" option Mostafa mentioned is very easy to use.

        http://www.goblincoding.com

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jarosda
          wrote on last edited by
          #4

          Thanks a lot guys, ithis is what I looked for. This thread could be marked as SOLVED.

          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