QML question
Thiago Macieira
thiago at macieira.org
Wed Apr 27 09:27:04 PDT 2016
On quarta-feira, 27 de abril de 2016 17:40:53 PDT Joakim Bygdell wrote:
> Thomas or Thiago can you explain what’s going on here?
>
> I have a combobox that gets populated from a QStringList.
>
> If I generate the QStringList on the C++ side like so,
> list << “foo” << “bar << “baz"
> my combobox contains 3 elements as expected.
>
> If I populate the QStringList with data from the dive struct,
> list << dive.buddy << dive.divemaster
> the combobox is empty.
>
> In the later example the QStringList contains the expected data as I can
> join the QStringList into a QString that displays correctly on the QML
> side.
The source of the data is not the issue here. That's a red herring. The
problem is something else.
1) are you sure dive.buddy and dive.divemasters are non-empty strings?
2) is there anything special about the content of those strings?
3) can you show the code after that?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
More information about the subsurface
mailing list