Assembly: Difference between revisions
(→QML Learning resources: shader links) |
TomiKorpipaa (talk | contribs) |
||
Line 12: | Line 12: | ||
There are many ways to get the Qt installation: | There are many ways to get the Qt installation: | ||
#INSTALLER, this is by far the most easiest way to get a Qt build on your computer. We support Windows, Mac and Linux desktops. https://www.qt.io/download | #INSTALLER, this is by far the most easiest way to get a Qt build on your computer. We support Windows, Mac and Linux desktops. https://www.qt.io/download (OSS Installer: [https://www.qt.io/download-qt-installer?hsCtaTracking=99d9dd4f-5681-48d2-b096-470725510d34%7C074ddad0-fdef-4e53-8aa8-5e8a876d6ab4 https://www.qt.io/download-qt-installer]) | ||
#SOURCE, if you know what you are doing, nice alternative is to get the source and build it from scratch. Qt supports different build environments and has lot of documentation available: [[Building Qt 6 from Git]] | #SOURCE, if you know what you are doing, nice alternative is to get the source and build it from scratch. Qt supports different build environments and has lot of documentation available: [[Building Qt 6 from Git]] | ||
Line 20: | Line 20: | ||
If you are not familiar with Qt/QML, please head over to https://qmlbook.github.io. This is a comprehensive QML with introductions and practical examples. Once familiar with Qt, you can start using Qt6 3D features by following the QtQuick3D documentation found from: https://doc-snapshots.qt.io/qt6-dev/qtquick3d-index.html - notice these are for Qt 6.2. | If you are not familiar with Qt/QML, please head over to https://qmlbook.github.io. This is a comprehensive QML with introductions and practical examples. Once familiar with Qt, you can start using Qt6 3D features by following the QtQuick3D documentation found from: https://doc-snapshots.qt.io/qt6-dev/qtquick3d-index.html - notice these are for Qt 6.2. | ||
==== Shaders ==== | ====Shaders==== | ||
Everybody loves shaders, right? Qt is great platform to do shader programming and for these you might want to head to: https://doc.qt.io/qt-5/qml-qtquick-shadereffect.html <br /> | Everybody loves shaders, right? Qt is great platform to do shader programming and for these you might want to head to: https://doc.qt.io/qt-5/qml-qtquick-shadereffect.html <br /> | ||
Revision as of 13:10, 23 June 2021
Assembly '21 and Qt
Qt will be present at Assembly '21 event as sponsored combo. Details of this to follow... This means that if you submit a demo or production done with Qt or with Qt tools -- you can participate in separate combo and can compete to get great prizes.
This page is landing page for these activities and will be updated regularly, so please check back often.
Qt versions
Qt6; To get the most out from the 3D graphics engine, you should be using the latest Qt (6.2). At the time of writing, Qt 6.2 snapshot does not have multimedia in yet (so you need to build it from source).
Qt5: This is the latest LTS release and despite lacking advanced 3D features, it's fully usable as demo platform if you're applying only shaders. Qt5 also has fully functional multimedia so you can start developing applications easily already today.
Getting Qt
There are many ways to get the Qt installation:
- INSTALLER, this is by far the most easiest way to get a Qt build on your computer. We support Windows, Mac and Linux desktops. https://www.qt.io/download (OSS Installer: https://www.qt.io/download-qt-installer)
- SOURCE, if you know what you are doing, nice alternative is to get the source and build it from scratch. Qt supports different build environments and has lot of documentation available: Building Qt 6 from Git
Recommended and easiest setup is to use Qt 6.2 from the installer and install Qt Multimedia as separate package.
QML Learning resources
If you are not familiar with Qt/QML, please head over to https://qmlbook.github.io. This is a comprehensive QML with introductions and practical examples. Once familiar with Qt, you can start using Qt6 3D features by following the QtQuick3D documentation found from: https://doc-snapshots.qt.io/qt6-dev/qtquick3d-index.html - notice these are for Qt 6.2.
Shaders
Everybody loves shaders, right? Qt is great platform to do shader programming and for these you might want to head to: https://doc.qt.io/qt-5/qml-qtquick-shadereffect.html
QtMultimedia in Qt6
At the time of writing, QtMultimedia is not finished (in the latest dev build) and not in snapshot release - so it must be compiled manually.
This is best done using Qt Creator, and the steps are:
- Clone the module: https://codereview.qt-project.org/admin/repos/qt/qtmultimedia
- Open CMakeLists.txt from the qtmultimedia directory with Qt Creator
- Make sure you're building 'release' target
- Add install step to the build target setup in Qt Creator (seen in the picture)
- Click 'Build' - Qt Creator will build the multimedia module and will install it to your Qt6 environment:
Troubles ?
If you use snapshot release from installer, basically it's been tested and works a-ok. Usually the problems arise when you go full source. If you go there and cannot get f.ex audio running, you need to make sure all modules are compiled with same toolchain and are up-to-date.