Qt Forum

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

    Solved Resize a layout

    General and Desktop
    2
    4
    448
    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.
    • A
      abhay last edited by

      Hello...Please go through this link.
      https://s11.postimg.org/elxhpkqbn/Screenshot_from_2016_10_18_22_57_44.png
      I want the second layout which contains pushbuttons to look smaller. It occupies approx half the width of the total window.I want it to like something similar to Vlc player(top box is video widget and below one is for the buttons).When I am resizing it won't resize and I want to be responsive.Can anyone help me in this issue?Thanks!

      1 Reply Last reply Reply Quote 0
      • VRonin
        VRonin last edited by

        you have to set the vertical size policy of the QWidget and the QGroupBox to Expanding

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        A 1 Reply Last reply Reply Quote 3
        • A
          abhay @VRonin last edited by

          @VRonin Thanks!! I feel stupid..

          1 Reply Last reply Reply Quote 0
          • VRonin
            VRonin last edited by

            Don't, please! we all have been there

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

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