GridLayout is a flickarable item and not the scrollview, this flickerableĭoes'nt have any size it take the children size, so you need to bind to What you may want to try is something similar to this, note the parent of Give your Grid an id, and set the scrollview contentWidth/contentHeight to the width and height of theĪlso, usually you need a height AND width set, if the anchors are not set. The scroll item, whose extents are set via anchors or height/width,and the contentHeight and contentWidth, which are the virtual area, in this case your grid layout. There are two sizes with the Scrolly things. Since this is my first foray into QML I am sure I am missing something obvious. If I remove the ScrollView then the TextField fills the remainder of the row? the issue is that if I do that then the TextFields which are set to fill in the rest of the row (inside a GridLayout) does not fill the row. I have a bunch of âLabel/TextFieldâ pairs to the point where there are so many that I need them inside a scrollview. I am trying to use a ScrollView in a QQuickWidget but the layout does not seem to be honoring what I am wanting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |