Re: QML question

2016-04-27 Thread Tomaz Canabrava
On Wed, Apr 27, 2016 at 2:15 PM, Joakim Bygdell wrote: > > > On 27 Apr 2016, at 18:55, Tomaz Canabrava wrote: > > > > Please, please: > > > > don't add more stuff to the QMLManager, it's a huge beast already :) > > crete something like this: > > > >

Re: QML question

2016-04-27 Thread Joakim Bygdell
> On 27 Apr 2016, at 18:55, Tomaz Canabrava wrote: > > Please, please: > > don't add more stuff to the QMLManager, it's a huge beast already :) > crete something like this: > > Q_INVOKABLE QStringListModel : DiveObjectHelper::buddies() { >static QStringListModel

Re: QML question

2016-04-27 Thread Tomaz Canabrava
Please, please: don't add more stuff to the QMLManager, it's a huge beast already :) crete something like this: Q_INVOKABLE QStringListModel : DiveObjectHelper::buddies() { static QStringListModel buddies = new QStringListModel(); QStringList temp; for_each_dive (i, d) { temp <<

Re: QML question

2016-04-27 Thread Joakim Bygdell
> On 27 Apr 2016, at 18:27, Thiago Macieira wrote: > > 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

Re: QML question

2016-04-27 Thread Thiago Macieira
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

QML question

2016-04-27 Thread Joakim Bygdell
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