Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112199

setColumnMinimumWidth() breaks layout if used with QScrollArea.

    XMLWordPrintable

Details

    • Windows

    Description

       If a widget with a scroll area (horizontal scrollbar off) is nested with another widget with gridlayout where layout has line edit and label in columns then at run time if setColumnMinimumWidth() is called it breaks the layout and leaves line edit cut off.

       if setColumnMinimumWidth() is called in the beginning then the the minimum size of the layout is respected. but if it is called against a button click this does not works.

      Attached is the small example which reproduces this.

      To visualize problem better, uncomment following line and run the example. 

      //layout->setColumnMinimumWidth(0, 200);

      And then comment it and run and hit Button "Change column width"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes