Assembly: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
Line 5: Line 5:


==Qt versions==
==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).
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.
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.
Line 15: Line 15:
#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]]


==QtMultimedia==
Recommended and easiest setup is to use Qt 6.2 from the installer and install Qt Multimedia as separate package.
At the time of writing, QtMultimedia is not finished (in the latest dev build) so it must be compiled manually.  
 
== 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.
<br />
==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 done with couple simple steps:


This is best done using Qt Creator, and the steps are:
This is best done using Qt Creator, and the steps are:
Line 24: Line 29:
#Make sure you're building 'release' target
#Make sure you're building 'release' target
#Add install step to the build target setup in Qt Creator (seen in the picture)
#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 [[File:Screenshot 2021-06-17 at 12.10.55.png|thumb|build settings]]<br />
#Click 'Build' - Qt Creator will build the multimedia module and will install it to your Qt6 environment: [[File:Screenshot 2021-06-17 at 12.10.55.png|thumb|build settings]]
 
 
 
 
 
<br />
 
== 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.

Revision as of 08:39, 18 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:

  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
  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.

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 done with couple simple steps:

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.