Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Custom widget [SOLVED]

    Tools
    3
    4
    1002
    Loading More Posts
    • 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
      jarosda last edited by

      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 Reply Quote 0
      • A
        alizadeh91 last edited by

        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 Reply Quote 0
        • G
          goblincoding last edited by

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

          http://www.goblincoding.com

          1 Reply Last reply Reply Quote 0
          • J
            jarosda last edited by

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post