Re: [Interest] Q_GADGET and Q_MOVABLE_TYPE

2015-08-23 Thread Lorenz Haas
2015-08-21 17:59 GMT+02:00 Thiago Macieira : > Yes, it is. It added static members only to your class. Perfect, thanks! ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt 5.5.0 Compile Time Hash Example

2015-08-23 Thread Helmut Mülner
This will not work in every case because you cannot guarantee that your hash function generates a unique value for every string. In hash based containers you still have to compare against the valueof the string. Am 24.08.2015 01:27 schrieb "mark diener" : > Hello List: > > Have you ever wanted an

Re: [Interest] Exposing types to the QJSEngine in Qt 5.5

2015-08-23 Thread Sandro Andrade
On Fri, Aug 7, 2015 at 2:23 PM, Jaroslaw Staniek wrote: > Hi Again, > No thoghts about the matter? > > >From https://wiki.qt.io/New_Features_in_Qt_5.5: > "You can now have Q_PROPERTY and Q_INVOKABLE within a Q_GADGET [...]" > > But there's no QJSEngine::newQGadget() so is my only solution is the >

[Interest] QML registration of Q_PROPERTIES of type QList

2015-08-23 Thread Sandro Andrade
Hi there, Since some previous Qt5 version, Q_PROPERTIES of type QList are automatically registered for use in QML as models as well as accessible from QJSEngine. Now I'd like to use Q_PROPERTIES of type QList but those aren't automatically registered in QJSEngine and also there is no QScriptEngine

[Interest] Qt 5.5.0 Compile Time Hash Example

2015-08-23 Thread mark diener
Hello List: Have you ever wanted an efficient switch statement on QString values? There are many references to the subject with various algorithms, but they all have some major flaw in the implementation. For those looking for a way to have compile and run time hash on their strings, I spent a l

Re: [Interest] Accessing QML Loader from C++

2015-08-23 Thread Curtis Mitch
From: interest-bounces+mitch.curtis=theqtcompany@qt-project.org on behalf of mark diener Sent: Sunday, 23 August 2015 05:40 To: interest@qt-project.org Subject: [Interest] Accessing QML Loader from C++ Hello List: Does anybody have an idea on how to retrieve the QObject* from C++ with a Q