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. Resize of scroll area widget not working
Forum Updated to NodeBB v4.3 + New Features

Resize of scroll area widget not working

Scheduled Pinned Locked Moved Solved General and Desktop
25 Posts 3 Posters 8.3k 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

    @ofmrew
    Is verticalLayout_2 one of the red one you can drag from left side ?
    That would explain the image. ( so inside scrollArea widget is a free floating red layout) and
    not a layout on scrollwidget in itself. ( by placing a widget and right click on area around it, and use layout menu)
    alt text

    O Offline
    O Offline
    ofmrew
    wrote on last edited by
    #21

    @mrjj I am not sure I understand what you are asking. I have deleted the canvas and the layout, so now I have what is shown in the image below:
    alt text

    The scroll area is selected. Now what should I do?

    By the way on Postimage do not believe that 100% meand that the upload is finished, you must wait for the uploaded message, the image and a list of links.

    mrjjM 1 Reply Last reply
    0
    • O ofmrew

      @mrjj I am not sure I understand what you are asking. I have deleted the canvas and the layout, so now I have what is shown in the image below:
      alt text

      The scroll area is selected. Now what should I do?

      By the way on Postimage do not believe that 100% meand that the upload is finished, you must wait for the uploaded message, the image and a list of links.

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

      @ofmrew
      Ok :)
      Im am asking.
      How did you apply a layout to the ScrollAreaWidget ?

      -you must wait for the uploaded message, the image and a list of links.
      Yes and then select the direct link for image to show here.

      Ok, what i expect.
      1: place scrollarea on form
      2: place a widget inside scroll area
      3: right click scrollarea, and use the right click Layout menu to apply layout. ( no dragging)

      O 1 Reply Last reply
      2
      • mrjjM mrjj

        @ofmrew
        Ok :)
        Im am asking.
        How did you apply a layout to the ScrollAreaWidget ?

        -you must wait for the uploaded message, the image and a list of links.
        Yes and then select the direct link for image to show here.

        Ok, what i expect.
        1: place scrollarea on form
        2: place a widget inside scroll area
        3: right click scrollarea, and use the right click Layout menu to apply layout. ( no dragging)

        O Offline
        O Offline
        ofmrew
        wrote on last edited by
        #23

        @mrjj Success!!!!!

        My mistake it seems was not understanding the order of actions: place on the form the container for the widget, add the widget, right click on the container and then select layouts and select the layout. I was drag-and-dropping the layout, adding and resizing the widget to fit. Now I understand the order.

        Thanks very much. I can be accomplished in QtCreator.

        mrjjM 1 Reply Last reply
        0
        • O ofmrew

          @mrjj Success!!!!!

          My mistake it seems was not understanding the order of actions: place on the form the container for the widget, add the widget, right click on the container and then select layouts and select the layout. I was drag-and-dropping the layout, adding and resizing the widget to fit. Now I understand the order.

          Thanks very much. I can be accomplished in QtCreator.

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

          @ofmrew
          Its a classic. :)
          The draggable layouts seems the ones, until one find the right click
          menu. But the red layouts are for inserting into other layouts to stack/layout in other direction them but
          cannot be used directly on a widget as they dont scale to widgets area then.
          Also, now we talking about it.
          Using a splitter. You must place 2 widgets and select them, then you can use right menu to add splitter.
          (to be able to adjust area shared)

          1 Reply Last reply
          1
          • O Offline
            O Offline
            ofmrew
            wrote on last edited by
            #25

            Because of the number of posts about this issue, I thought it might be good to post a synopsis of the steps in creating:

            alt text

            The steps are: To design this window we do the following: 1. Place two pushbutton on the form, just above the status bar. Select both and right click on one of the selected pushbuttons. From the dialog chose Layout and Horizontal Layout. Now drop a scroll area above the pushbuttons. Right click on the main window and chose layout and Vertical Layout. We are not finished we must first add a Widget to the scroll area, i.e., drop the Widget with in the bounds of the scroll area object, then we must right click within the scroll area, but not within the Widget, chose Layouts and select vertical layout. The Widget will now resize with the other UI objects. The Widget is not what we want, we want a canvas, so select the Widget and promote it to MyCanvas. The key is to use the right mouse button to bring up the dialog.

            Hope this helps someone.

            1 Reply Last reply
            2

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved