Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt for MCUs 2.8.1
-
None
Description
Here is an example code, the horizontal / vertical alignment causes the build error.
Code:
import QtQuick Rectangle { Component { id: textComp Text { width: 128 height: 64 font.pixelSize: 16 text: "Build Error" horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } } Loader { sourceComponent: textComp active: true } }
Error message:
C:/work/QTMCU341/build/Qt_for_MCUs_2_8_Desktop_32bpp_MINGW-Debug/CMakeFiles/QTMCU341.dir/QTMCU341.cpp: In constructor 'QTMCU341::text_2::text_2(QTMCU341*)':
C:/work/QTMCU341/build/Qt_for_MCUs_2_8_Desktop_32bpp_MINGW-Debug/CMakeFiles/QTMCU341.dir/QTMCU341.cpp:71:5: error: 'horizontalAlignment' was not declared in this scope
71 | horizontalAlignment.setValue(Qul::Private::Items::Text::AlignHCenter);
| ^~~~~~~~~~~~~~~~~~~
C:/work/QTMCU341/build/Qt_for_MCUs_2_8_Desktop_32bpp_MINGW-Debug/CMakeFiles/QTMCU341.dir/QTMCU341.cpp:74:5: error: 'verticalAlignment' was not declared in this scope
74 | verticalAlignment.setValue(Qul::Private::Items::Text::AlignVCenter);
| ^~~~~~~~~~~~~~~~~
Attachments
Issue Links
- mentioned in
-
Page Loading...