QtQuick Controls in SwipeView

  • I want to use QtQuick Controls and QtQuick Layouts in a SwipeView with two pages. I include
    import QtQuick 2.7
    import QtQuick.Controls 2.1
    import QtQuick.Layouts 1.2
    in main.qml, Page1Form.ui.qml and Page2Form.ui.qml. When I open the ui.qml:s in design mode all the imports appear under the Library/Import tab. Under the Library/QML Types tab the Qt Quick Layouts appear, but there are no Qt Quick Controls. What do I do wrong?
    Using Qt 5.8 on OS X 10.

  • @PA-F Have you tried Controls 2 example projects? Or created a new Controls 2 skeleton project with the wizard? What happens with them?

  • @Eeli-K I made a Controls 2 project with the wizard (which uses Controls 2.0 and Layouts 1.0). Same problem there.

  • @PA-F And you have Qt Creator version 4.2.1? Have you tried to open and run a Controls 2 application from the Welcome screen? Can you compile and run your own project as it is now?

  • In my project I have textField controls (from Controls 2, included in some previous version which I am unable to reconstruct) ). It builds and runs without problem.

  • And yes, I use Qt Creator 4.2.1.

  • May this compiler message indicate a problem??
    "The file reference for "/.../qml.qrc" is a member of multiple groups ("Supporting Files" and "Resources"); this indicates a malformed project."

Log in to reply