Qt-Related Improvements
- Improved support for Qt based ParameterBlock2
- Qt Spinboxes:
- Support for QT Visual Studio Tools add-on version 2.4.3
Improved support for Qt based ParameterBlock2
Support has been added for TYPE_BITMAP
Tooltip resource-IDs are now picked up from the parameter block definition. However, the tooltips, if present in the Qt control (from code or .ui
file) take precedence over the ones from the paramblock).
Qt Spinboxes:
The scale of the paramblock definition now gets correctly set as the singleStep
property on Qt spinners. If the scale inside the paramblock definition is set to SPIN_AUTOSCALE
, the control is now correctly set to QAbstractSpinBox::AdaptiveDecimalStepType
, as intended.
This also fixes the intermediate problem with the step-size not being recognized from the UI.
Support for QT Visual Studio Tools add-on version 2.4.3
3ds Max 2021 now supports Qt VS Tools add-on version 2.4.3, which was released in January 2020.
Qt VS Tools v2.4 supports Qt Visual Studio projects having different Qt VS project formats, including the latest Qt/MsBuild project format v2.4, as well as the older Qt/MSBuild v2.3, or Qt custom build tools formats.
Both Qt/MSBuild and Qt custom build steps are valid Qt VS project formats. Existing Qt projects can still be built as-is. However, if Qt VS Tools v2.4 will be used to modify an existing Qt project configuration, the Visual Studio project file (.vcxproj) should first be upgraded to the latest Qt/MSBuild v2.4 format.
To support Qt VS Tool v2.4.3, the 3ds Max SDK property sheet 3dsmax.general.project.settings.props
has been updated as follows:
Added a new property named
<QtInstall>
, which is conditionally defined for Qt projects that are configured with the latest Qt/MSBuild project format v2.4. Qt/MSBuild v2.4 uses<QtInstall>
to automatically derive<QTDIR>
and other Qt related properties.The property
<QTDIR>
is now explicitly defined only for Qt projects that are configured with either custom build steps, or the older Qt/MSBuild project format (v2.3 or lower).The
<Keyword>
property in the .vcxproj files identifies the applicable Qt VS project format version and is used to determine whether to define either<QtInstall>
or<QTDIR>
:- "QtVS_v300" or higher: The project uses Qt/MSBuild VS project format v2.4 or higher
- "Qt4VS*" pattern: The project uses Qt custom build steps or QtMsBuild VS project format older than version v2.3
The Max SDK sample project
CameraMapTexture.vcxproj
had previously been converted to a Qt-based project using the older QtMsBuild project format v2.3.2. It has now been upgraded to use QtMsBuild v2.4.3. Other Qt-based Max SDK sample and how-to projects remain unchanged; they are still configured using Qt custom build steps.
Enumerable.ToHashSet()
method that is used in $(QtMsBuild)/qt_tasks.targets.