Solved stackView.currentItem.data[0].objectName always null in Qt5.6.3
-
Hi
I'm usingobjectName
property to find the name of loaded items instackview
.Everything is fine in Qt
5.14.2
. But this property is always null in5.6.3
. Why? -
StackView
should not work with5.6.3
. Therefore you can not access theobjectName
properly. -
@LinArcX said in stackView.currentItem.data[0].objectName always null in Qt5.6.3:
But this property is always null in 5.6.3. Why
Are you sure, that your code works at all?!
According to this (https://doc.qt.io/qt-5/qml-qtquick-controls2-stackview.html),
StackView
should not be in5.6.3
since it was introduced in5.7
first. -
@Pl45m4 said in stackView.currentItem.data[0].objectName always null in Qt5.6.3:
Why
Yes, my code compiled and worked very well.
-
Is there any other way to access name of pages in 5.6.3?
-
StackView
should not work with5.6.3
. Therefore you can not access theobjectName
properly.