Qt components and QML sidebar/ examples
-
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? -
Hi,
You are trying to use a closed repository. There's more information under the warning on the repository page.
-
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
-
Which sidebar are you talking about ?
-
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.
-
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
-
Yes Sure. It is under examples.
-
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.