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. Designing custom widget in Designer
Qt 6.11 is out! See what's new in the release blog

Designing custom widget in Designer

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 645 Views 1 Watching
  • 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
    EaccB
    wrote on last edited by
    #1

    I need to design a custom widget which has quite a complex arrangement of line edits and push buttons. Therefore, I'm trying to avoid doing it programatically. Is there a way I can use Designer to layout my widget?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @EaccB said in Designing custom widget in Designer:

      Is there a way I can use Designer to layout my widget?

      Yes - it's the same as you design a normal dialog / widget.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • E Offline
        E Offline
        EaccB
        wrote on last edited by
        #3

        How would I then "save" that into a custom widget?

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by Christian Ehrlicher
          #4

          @EaccB said in Designing custom widget in Designer:

          How would I then "save" that into a custom widget?

          I don't understand.
          A custom widget is a normal widget - nothing more. If you want a custom widget in the designer you have to create a designer plugin: https://doc.qt.io/qt-5/designer-using-custom-widgets.html

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          3
          • E Offline
            E Offline
            EaccB
            wrote on last edited by
            #5

            I mean if I layout the line edits and buttons in Designer, how can I combine them into a custom widget?

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @EaccB said in Designing custom widget in Designer:

              how can I combine them into a custom widget?

              The same way as you do it with a 'normal' widget: https://doc.qt.io/qt-5/designer-using-a-ui-file.html

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              3
              • E Offline
                E Offline
                EaccB
                wrote on last edited by
                #7

                Thanks that's worked!

                Pablo J. RoginaP 1 Reply Last reply
                1
                • E EaccB

                  Thanks that's worked!

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #8

                  @EaccB said in Designing custom widget in Designer:

                  Thanks that's worked!

                  great, so please don't forget to mark your post as solved then!

                  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