Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtQuick Controls in SwipeView

QtQuick Controls in SwipeView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 2 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PA F
    wrote on last edited by
    #1

    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.

    E 1 Reply Last reply
    0
    • P PA F

      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.

      E Offline
      E Offline
      Eeli K
      wrote on last edited by
      #2

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

      P 1 Reply Last reply
      0
      • E Eeli K

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

        P Offline
        P Offline
        PA F
        wrote on last edited by
        #3

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

        E 1 Reply Last reply
        0
        • P PA F

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

          E Offline
          E Offline
          Eeli K
          wrote on last edited by
          #4

          @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?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PA F
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              PA F
              wrote on last edited by
              #6

              And yes, I use Qt Creator 4.2.1.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                PA F
                wrote on last edited by
                #7

                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."

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved