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

Scrollbar not available inside Scrollview

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15.8
    • Quick: Controls 2
    • None
    • macOS, Windows

    Description

      Under certain unclear conditions QML marks a scrollbar inside a scrollview as a non-existing object.

      I have a condition similar to following:

       

      Rectangle{

      ...

      ColumnLayout{

      ...

      Flickable{

      ...

       

      ScrollView{

      ....

       

      ScrollBar.vertical: ScrollBar

      { x: 710 width: 20 height: parent.height policy: ScrollBar.AsNeeded interactive: true }

      ColumnLayout

      {   }

       

      }

      }

      }

      }

       

      If I add the specifications for the scrollbar, the latter is marked as a non-existing object and therefore the code cannot be executed.

       

      NB:

      1. The same error occurs by just replacing the entire scrollbar specifications with a simple line like ScrollBar.vertical.policy: ScrollBar.AlwaysOn.
      1. When the scrollbar is not explicitly added it either way appears.
      1. In an almost identical situation the scrollbar specifications can be successfully added.

       

      Should further information be needed please feel free to contact me.

      Regards

       

       

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            arappazzo Agostino Rappazzo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes