On 30.11.2017 17:32, Öö Tiib wrote:
> On Thursday, 30 November 2017 17:37:51 UTC+2, Josef Moellers wrote:
>> I have written a small Qt program which displays a set of topics
>> subscribed from a mosquitto broker. At present, the program uses
>> libmosquitto, but I'd like to make it use libmosquittopp (it is also a
>> learning exercise).
>> The set of topics is not static, the topics are passed on the command
>> line, so I need a means to hand this set (forged into a QStringList) to
>> the on_connect() method in order to subscribe to all the topics given.
>>
>> There is the user_data_set(void *userdata) method in the class
>> mosquittopp but it only passes the "userdata"-pointer to the underlying
>> mosquitto code. Any callback specified by
>> mosquitto_connect_callback_set() will then get this pointer but not the
>> on_connect() method!
>>
>> Any hints?
>
> Very interesting. We are here on comp.lang.c++ discussing C++
> language itself. With C++ it is possible to integrate anything with
> anything but from your post it is not very clear what the issue is.
> Is with mosquitto or with Qt or with your own C++ code?
It is actually with the mosquitto code. I searched the list of
newsgroups my provider has and it had nothing that adressed this issue,
so I tried here. I'll go where you told me to go:
Sorry for the inconvenience,
Josef