[Development] Don't use Private *d when your class is immutable

2017-03-02 Thread Marc Mutz
Hi, If you have a class that just represents a concrete immutable entity, like some system resource's ID, or an SSL elliptic curve algorithm, you can use an enum. Or you can use a class, if you want some richer API than can be had with an enum. In that case, however, *don't* use a Private poi

Re: [Development] Feature Freeze Exception: QStringView

2017-03-02 Thread Thiago Macieira
Em quinta-feira, 2 de março de 2017, às 14:36:55 PST, Giuseppe D'Angelo escreveu: > Can we start these discussions, like, now? Could you please share your > QString/QVector branch and describe what you did in there and what you > think QString should look like in Qt 6? (Similarly, we should start

Re: [Development] Feature Freeze Exception: QStringView

2017-03-02 Thread Giuseppe D'Angelo
Il 20/02/2017 22:02, Thiago Macieira ha scritto: > I really want QStringView and I'd like to talk to you how Qt6 QString, > QStringView and a non-sharing QString class should cooperate to reduce code > size in QtCore. Something like QString deriving from QStringView. Can we start these discussio

[Development] return value of QCoreApplication::testAttribute(Qt::AA_MacDontSwapCtrlAndMeta)

2017-03-02 Thread René J . V . Bertin
Hello, Should QCoreApplication::testAttribute(Qt::AA_MacDontSwapCtrlAndMeta) return the actual value of the attribute even if it hasn't been set by the user? For me it always returns false when I just want to know whether of not swapping is active, e.g. in the little demonstrator at github:RJVB

Re: [Development] There is the wrong behavior with QUdpSocket && EAGAIN on *nix?

2017-03-02 Thread Thiago Macieira
Em quarta-feira, 1 de março de 2017, às 22:43:40 PST, Denis Shienkov escreveu: > is a solution with QUdpSocket? > > > ...unless QUdpSocket already creates one on that socket. The event > > dispatcher > > does not allow two QSN on the same socket, with the same type. If that > > happens, let us kno