Solved How can I use the QtMqtt code?
-
Re: How can I use the QtMqtt code?
Hi, I'm trying to use the qtmqtt library, but I can't make it work.
I modified the source code as said in the referenced topic (deleting all <QtMqtt/ prefixes), but I obtained this:It says that, i.e.,
'class QList<QMqttTopicName>' has no member named 'resize'; did you mean 'size'?
m_receiveAliases.resize(m_clientPrivate->m_serverConnectionProperties.maximumTopicAlias());
^~~~~~
sizeCan you help me? I'm using Qt 5.15.0
Thanks! -
@pabloleibo The error messages are not related to QtMqtt.
QList does not have resize() method.
And QStringView does not have method split(). -
@pabloleibo said in How can I use the QtMqtt code?:
I'm trying to use the qtmqtt library
did you build and install the Qt MQTT module?
-
Hi to all!
@jsulm said in How can I use the QtMqtt code?:
@pabloleibo The error messages are not related to QtMqtt.
QList does not have resize() method.
And QStringView does not have method split().Yes, I don't know why!
@Pablo-J-Rogina said in How can I use the QtMqtt code?:
@pabloleibo said in How can I use the QtMqtt code?:
I'm trying to use the qtmqtt library
did you build and install the Qt MQTT module?
Yes, I tried to build QtMqtt from the github repo.
Thanks!
-
@pabloleibo said in How can I use the QtMqtt code?:
I tried to build QtMqtt from the github repo
And?
did you succeed installing it properly? -
Finally, I resolve this issue.
For all who read this topic, please be careful on which repo do you download. You have to change the branch and not download the default one. Select the correct qt version and not the master branch!
Thanks for all who helped! -
@pabloleibo Hey, after googling and searching for a solution to my problem which looks exactly like what you had, I came to your answer.
I'm a starter. Could you please explain to me how you managed to solve this issue? I get the same errors and I think I downloaded the wrong repo after reading your answer.
Thanks in advance. -