Qt components and QML sidebar/ examples
-
wrote on 23 Aug 2014, 16:26 last edited by
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
-
wrote on 24 Aug 2014, 17:01 last edited by
Now I installed the qt-examples out of aur and now I find the examples. Does an exaple exist, where a sidebar is?
-
Which sidebar are you talking about ?
-
wrote on 27 Aug 2014, 18:11 last edited by
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
-
wrote on 29 Aug 2014, 09:15 last edited by
Thank you. So I can take this Code and include in my project?
-
Yes Sure. It is under examples.
-
wrote on 3 Sept 2014, 09:34 last edited by
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? -
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.
-
wrote on 3 Sept 2014, 13:31 last edited by
Thank you at all which helped me so much. Thank you!!!
9/12