[Development] call for comments/review QSystemInfo::NetworkInfo API

Simon Hausmann simon.hausmann at digia.com
Wed Sep 24 17:37:51 CEST 2014


On Wednesday, September 24, 2014 08:15:45 AM Thiago Macieira wrote:
> On Wednesday 24 September 2014 20:08:28 Lorn Potter wrote:
> > > you have to retrieve the index() from the network interface first. It
> > > feels  like a very procedural API.
> > 
> > Yes, it is tedious and a bit odd to me, and is one thing I do not like
> > about it.  A lot of those don't have anything to do with any particular
> > network interface.
> 
> Probably for the reason Alex brought up: QML. It's easier to deal with
> integer indexes in QML than a QNetworkInterface object.

Why is that?

Besides that it's possible to make a QObject wrapper, I'd think 
QNetworkInterface would be a candidate for Olivier's Q_GADGET work :)


Simon



More information about the Development mailing list