<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear Dirk, Sebastian,<br>
<br>
If it were possible to have feedback from you based on not more than
15 minutes of your time, I would greatly appreciate it. I am trying
to get the QML to signal to the C++ and, due to newby inexperience,
I am totally stuck. I address a number of issues here, but the first
one is the substantive one, the others are small. I take the liberty
of attaching the code in three files.<br>
<br>
1) Signalling from the Continue button in the QML to the appropriate
C++ slot. I use an approach as close as possible to that of
QmlManager in Subsurface-mobile. I create a message object with a
slot, and connect this to the QML signal. Using QtCreator I get a
compile-time error: <br>
<tt>/home/willem/qml/vendor/main.cpp:48: error: undefined reference
to `GUIMessageClass::~GUIMessageClass()'</tt><br>
There is a possibility this is a systemic problem related to the way
of presenting code to QTCreator, but I am too naïve to be able to
determine this. Any comment at all will be invaluable.<br>
<br>
2) In the object in the header file, what does ~MessageClass mean?
It eliminates a compilation error for this code.<br>
<br>
3) With respect to the two models used in the QML, I get warnings
from the QML debugger in QtCreator:<br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span style=" font-family:'Monospace'; font-size:9pt; color:#aa0000;">qrc:main.qml:24: ReferenceError: vendorModel is not defined</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Monospace'; font-size:9pt; color:#aa0000;">qrc:main.qml:35: ReferenceError: productModel is not defined</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Monospace'; font-size:9pt; color:#aa0000;">qrc:main.qml:35: ReferenceError: productModel is not defined</span></p>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>These warnings do not cause faulty execution, though. But I
would love to know how they arise.<br>
<br>
4) When running the code within QtCreator, the combo boxes do not
work well. They need to be clicked several times before the options
are shown. However, if I provide models inside of QML (i.e. not
using a C++ external source) and I run the code using qmlscene, then
the combo boxes work as expected. So, FOR THE MOMENT I assume it is
a problem in the way QtCreator does the QML interpretation and that
the QML is likely to run as expected on a mobile device.<br>
Kind regards,<br>
willem<br>
<br>
</body>
</html>