Assembly

From Qt Wiki
Jump to navigation Jump to search

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:

  1. 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)
  2. 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:

  1. Clone the module: https://codereview.qt-project.org/admin/repos/qt/qtmultimedia
  2. Open CMakeLists.txt from the qtmultimedia directory with Qt Creator
  3. Make sure you're building 'release' target
  4. Add install step to the build target setup in Qt Creator (seen in the picture)
  5. Click 'Build' - Qt Creator will build the multimedia module and will install it to your Qt6 environment:
    build settings




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.