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. Qt components and QML sidebar/ examples
QtWS25 Last Chance

Qt components and QML sidebar/ examples

Scheduled Pinned Locked Moved QML and Qt Quick
12 Posts 3 Posters 5.9k 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.
  • W Offline
    W Offline
    Wuzi
    wrote on last edited by
    #1

    Hi,

    I tried to test the examples out of Qt which are on "Git":https://qt.gitorious.org/qt-components/desktop/source/cebdbdc5733735fdaba4ce3bf97e52216bb6fe22: but I don't know how I can import these examples in Qt Creator. I opened the files with Qt Creator but there are some imports which doesn't exist. I want to try the example I watched on "Youtube":https://www.youtube.com/watch?v=nj5jzv6njKg because I wanna take the sidebar in my test project.
    Does anyone can explane me how I can import these folder from Git in Qt Creator and test these examples?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You are trying to use a closed repository. There's more information under the warning on the repository page.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #3

        If you are using latest Qt (>=5), you can find the updated example "here":http://qt-project.org/doc/qt-5/qtquickcontrols-gallery-example.html and if you have installed for eg. Qt 5.3 on your system then you can find it in <QtDir>/Examples/Qt-5.3/quick/controls/gallery

        157

        1 Reply Last reply
        0
        • W Offline
          W Offline
          Wuzi
          wrote on last edited by
          #4

          Now I installed the qt-examples out of aur and now I find the examples. Does an exaple exist, where a sidebar is?

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            Which sidebar are you talking about ?

            157

            1 Reply Last reply
            0
            • W Offline
              W Offline
              Wuzi
              wrote on last edited by
              #6

              In this Video on Youtube: "QML components for the desktop":https://www.youtube.com/watch?v=nj5jzv6njKg at 1:30 minute. There is a sidebar.

              1 Reply Last reply
              0
              • p3c0P Offline
                p3c0P Offline
                p3c0
                Moderators
                wrote on last edited by
                #7

                It seems that they have removed it from the latest version. I think "this":https://qt.gitorious.org/qt-components/desktop/source/b96e92a936b3fba8622bc721861ec7cbfd3fdb02:examples/content/Panel.qml is the exact file which creates the SideBar. It is using old Qt Quick v1.0. But you can easily port it to Qt Quick 2.2

                157

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  Wuzi
                  wrote on last edited by
                  #8

                  Thank you. So I can take this Code and include in my project?

                  1 Reply Last reply
                  0
                  • p3c0P Offline
                    p3c0P Offline
                    p3c0
                    Moderators
                    wrote on last edited by
                    #9

                    Yes Sure. It is under examples.

                    157

                    1 Reply Last reply
                    0
                    • W Offline
                      W Offline
                      Wuzi
                      wrote on last edited by
                      #10

                      Thank for all of your replies!!! But at least a have one question:
                      How I can change the teme or the color of a for example a button, which is in QtQuick.Controlls?

                      1 Reply Last reply
                      0
                      • p3c0P Offline
                        p3c0P Offline
                        p3c0
                        Moderators
                        wrote on last edited by
                        #11

                        bq. How I can change the teme or the color of a for example a button, which is in QtQuick.Controlls?

                        Check "ButtonStyle":http://qt-project.org/doc/qt-5/qml-qtquick-controls-styles-buttonstyle.html.

                        157

                        1 Reply Last reply
                        0
                        • W Offline
                          W Offline
                          Wuzi
                          wrote on last edited by
                          #12

                          Thank you at all which helped me so much. Thank you!!!

                          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