ScrollView with QtQuick.Controls 2.3 don't find library in QML

1k views Asked by At

Today I've updated to Qt 5.9, I'm trying of use ScrollView, but this require this library: import QtQuick.Controls 2.3 When I import the library, and run, i receive this error:

QtQuick.Controls 2.3 is not installed.

This is impossibile, because I've installed last release qt 5.9

I need to use import QtQuick.Controls 2.1 to scroll content on android and ios.

Any solutions?

1

There are 1 answers

2
derM - not here for BOT dreams On

The documentation you link, is from the dev-branch of Qt5.10 - this will probably come with QtQuick.Controls 2.3, so the import-statement there seems legit.

Your error-message is also correct, as Qt5.9 ships with QtQuick.Controls 2.2

The documentation link of yours however states, that ScrollView is available since Qt5.9 - which is also backed by the documentation of this version, that can be found here - however then it is necessary to import the installed version QtQuick.Controls 2.2

If that does not work, I don't really see the superiority of the ScrollView over the old-style attatching ScrollBars to Flickables.