Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. Restricted Layout for Qt GUI applications
QtWS25 Last Chance

Restricted Layout for Qt GUI applications

Scheduled Pinned Locked Moved Showcase
12 Posts 7 Posters 7.5k 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.
  • P Offline
    P Offline
    pedromateo
    wrote on last edited by
    #3

    [quote author="paulo" date="1293128940"]video is missing... :([/quote]

    Now it is available (it was just uploaded in YouTube ;-)

    Pedro Mateo
    pedromateo@um.es
    http://www.pedromateo.es

    1 Reply Last reply
    0
    • P Offline
      P Offline
      parancibia
      wrote on last edited by
      #4

      great, nice work

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kamalakshantv
        wrote on last edited by
        #5

        good demo.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vcsala
          wrote on last edited by
          #6

          Yes, it is really interesting, I already think about how I could utilize such a feature.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            milot.shala
            wrote on last edited by
            #7

            Good job!

            When can we expect the release of both QAutomaticLayout and Restricted Layouts?

            1 Reply Last reply
            0
            • I Offline
              I Offline
              Immii
              wrote on last edited by
              #8

              Wow Great work, Can we have some src code of it? I am specially interested modifying size at run time

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pedromateo
                wrote on last edited by
                #9

                [quote author="Immii" date="1293233099"]Wow Great work, Can we have some src code of it? I am specially interested modifying size at run time[/quote]

                Hi Immii!!!

                I can not release the source code yet, but let me give you some advices:

                • you can use a QGridLayout with a fixed size. It is the container in which include your widgets.
                • use a collection of widgets: for the widgets you can show, visible = true, and visible = false for the opposite situation.
                • distribute the visible widgets along the slots in the layout

                Cheers!!!

                Pedro Mateo
                pedromateo@um.es
                http://www.pedromateo.es

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #10

                  Nice demo. I like it. I am not sure I like the bottons above and under the view that much though. Is that hard-coded?

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    pedromateo
                    wrote on last edited by
                    #11

                    [quote author="Andre" date="1295000613"]Nice demo. I like it. I am not sure I like the bottons above and under the view that much though. Is that hard-coded? [/quote]

                    Hi Andre,

                    those buttons are automatically shown when some QWidget included into the RestrictedLayout have to be hidden because size restrictions are not met.

                    Could you suggest me other way to provide access to hidden components? It would be very helpful for me.

                    Thank you very much for your valuable feedback.

                    Pedro Mateo
                    pedromateo@um.es
                    http://www.pedromateo.es

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andre
                      wrote on last edited by
                      #12

                      The best way to do that, would be application dependant, I think. For one application, the best solution could be to provice previous and next buttons under the layout you show. For others, gestures may be appropriate, and in the next one, you'd like to have scroll bars.

                      In short, I think there should be API to enable custom navigation of the restricted layout. That way, users can make up their own mind on what means of navigation suits their application.

                      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