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. Some questions regarding visual components (widgets).
Forum Updated to NodeBB v4.3 + New Features

Some questions regarding visual components (widgets).

Scheduled Pinned Locked Moved Solved General and Desktop
18 Posts 6 Posters 1.2k Views 3 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.
  • mrjjM mrjj

    @jenya7
    Hi
    That really sounds like a QSplitter.
    Try select 2 widgets and right-click, from the layout sub menu, you can choose a splitter.
    That will place the selected widgets in a layout that allows resizing the 2 parts.

    J Offline
    J Offline
    jenya7
    wrote on last edited by
    #8

    @mrjj said in Some questions regarding visual components (widgets).:

    @jenya7
    Hi
    That really sounds like a QSplitter.
    Try select 2 widgets and right-click, from the layout sub menu, you can choose a splitter.
    That will place the selected widgets in a layout that allows resizing the 2 parts.

    Thanks a lot. It works good. The same way should be option to dock components, shouldn't it? can not find...

    mrjjM 1 Reply Last reply
    0
    • J jenya7

      @mrjj said in Some questions regarding visual components (widgets).:

      @jenya7
      Hi
      That really sounds like a QSplitter.
      Try select 2 widgets and right-click, from the layout sub menu, you can choose a splitter.
      That will place the selected widgets in a layout that allows resizing the 2 parts.

      Thanks a lot. It works good. The same way should be option to dock components, shouldn't it? can not find...

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #9

      @jenya7 said in Some questions regarding visual components (widgets).:

      dock components,

      Hi
      What do you mean by that ?
      The only dockable widges are DockWidgets that can both float as windows and be embedded
      into a widget/form. However it can contain any other widget you want.

      Any widget can be embedded into any widget using layouts but im not sure if you mean that by
      dock components ?

      J 1 Reply Last reply
      2
      • mrjjM mrjj

        @jenya7 said in Some questions regarding visual components (widgets).:

        dock components,

        Hi
        What do you mean by that ?
        The only dockable widges are DockWidgets that can both float as windows and be embedded
        into a widget/form. However it can contain any other widget you want.

        Any widget can be embedded into any widget using layouts but im not sure if you mean that by
        dock components ?

        J Offline
        J Offline
        jenya7
        wrote on last edited by jenya7
        #10

        @mrjj said in Some questions regarding visual components (widgets).:

        @jenya7 said in Some questions regarding visual components (widgets).:

        dock components,

        Hi
        What do you mean by that ?
        The only dockable widges are DockWidgets that can both float as windows and be embedded
        into a widget/form. However it can contain any other widget you want.

        Any widget can be embedded into any widget using layouts but im not sure if you mean that by
        dock components ?

        I have a tabWidget on a MainWindow. When I resize the MainWindow, make it bigger, the tabWidget stays the same size, it looks ugly. I want it to stretch along with the MainWindow.

        The same goes for the components on the tab - they should resize along with the tab.

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

          Take a look at Qt Layout Management

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

          J 1 Reply Last reply
          2
          • Christian EhrlicherC Christian Ehrlicher

            Take a look at Qt Layout Management

            J Offline
            J Offline
            jenya7
            wrote on last edited by
            #12

            @Christian-Ehrlicher said in Some questions regarding visual components (widgets).:

            Take a look at Qt Layout Management

            I think it refers to Qt Quick Application where I create the visual components in my program. In my case - Qt Widget Application - can't grasp it - how can apply this layout to my widgets I drag from the components tab?

            1 Reply Last reply
            0
            • artwawA Offline
              artwawA Offline
              artwaw
              wrote on last edited by
              #13

              @jenya7 said in Some questions regarding visual components (widgets).:

              Qt Layout Management

              Same. Please read about following the link provided by @mrjj
              You can set layouts programmatically or do it via designer. Once everything is set properly you will get what you need (from the designer you can test using tools -> form editor -> preview.

              For more information please re-read.

              Kind Regards,
              Artur

              J 1 Reply Last reply
              3
              • Christian EhrlicherC Online
                Christian EhrlicherC Online
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #14

                @jenya7 said in Some questions regarding visual components (widgets).:

                I think it refers to Qt Quick Application

                No, the link is correct for QtWidgets.

                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
                2
                • artwawA artwaw

                  @jenya7 said in Some questions regarding visual components (widgets).:

                  Qt Layout Management

                  Same. Please read about following the link provided by @mrjj
                  You can set layouts programmatically or do it via designer. Once everything is set properly you will get what you need (from the designer you can test using tools -> form editor -> preview.

                  J Offline
                  J Offline
                  jenya7
                  wrote on last edited by
                  #15

                  @artwaw said in Some questions regarding visual components (widgets).:

                  @jenya7 said in Some questions regarding visual components (widgets).:

                  Qt Layout Management

                  Same. Please read about following the link provided by @mrjj
                  You can set layouts programmatically or do it via designer. Once everything is set properly you will get what you need (from the designer you can test using tools -> form editor -> preview.

                  How do I do it via designer?

                  artwawA 1 Reply Last reply
                  0
                  • J jenya7

                    @artwaw said in Some questions regarding visual components (widgets).:

                    @jenya7 said in Some questions regarding visual components (widgets).:

                    Qt Layout Management

                    Same. Please read about following the link provided by @mrjj
                    You can set layouts programmatically or do it via designer. Once everything is set properly you will get what you need (from the designer you can test using tools -> form editor -> preview.

                    How do I do it via designer?

                    artwawA Offline
                    artwawA Offline
                    artwaw
                    wrote on last edited by
                    #16

                    @jenya7 RTFM please

                    For more information please re-read.

                    Kind Regards,
                    Artur

                    J 1 Reply Last reply
                    3
                    • artwawA artwaw

                      @jenya7 RTFM please

                      J Offline
                      J Offline
                      jenya7
                      wrote on last edited by
                      #17

                      @artwaw said in Some questions regarding visual components (widgets).:

                      @jenya7 RTFM please

                      Thank you. It works.

                      Pablo J. RoginaP 1 Reply Last reply
                      1
                      • J jenya7

                        @artwaw said in Some questions regarding visual components (widgets).:

                        @jenya7 RTFM please

                        Thank you. It works.

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

                        @jenya7 said in Some questions regarding visual components (widgets).:

                        Thank you. It works.

                        So is your issue solved? Please don't forget to mark your post as such in that case.

                        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