Re: [Development] How to make a fancy QMap c++17 initializer_list

2017-07-25 Thread Grégoire Barbier
Le 24/07/2017 à 21:44, Henry Skoglund a écrit : On 2017-07-24 21:32, Grégoire Barbier wrote: Le 24/07/2017 à 18:45, Henry Skoglund a écrit : QMap m1 = {std::pair{2,"score"}, {4,"seven"}, {1,"Four"}, {5,"years"}, {3,"and"}, {6,"

Re: [Development] How to make a fancy QMap c++17 initializer_list

2017-07-24 Thread Grégoire Barbier
Le 24/07/2017 à 18:45, Henry Skoglund a écrit : QMap m1 = {std::pair{2,"score"}, {4,"seven"}, {1,"Four"}, {5,"years"}, {3,"and"}, {6,"ago"}}; Or even this: QMap<int, const char*> m1 {

Re: [Development] Qt 5.9's new garbage collector documentation? + root_ptr

2017-07-13 Thread Grégoire Barbier
hat do use a GC to, like C# or Java. Regards. -- Grégoire Barbier :: g à g76r.eu :: +33 6 21 35 73 49 ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] Qt 5.9's new garbage collector documentation? + root_ptr

2017-07-12 Thread Grégoire Barbier
the slot being able of calling QQmlEngine::setObjectOwnership() if it wants, or add the object as a global variable from C++ using, for instance QJSEngine::globalObject().setProperty(). Regards. -- Grégoire Barbier :: g à g76r.eu :: +33 6 21 35 73 49

Re: [Development] invokeMethod() with function pointers

2017-01-21 Thread Grégoire Barbier
in the thread are still interesting IMO. Thanks. -- Grégoire Barbier :: g à g76r.eu :: +33 6 21 35 73 49 ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] invokeMethod() with function pointers

2017-01-20 Thread Grégoire Barbier
Le 20/01/2017 à 11:14, Olivier Goffart a écrit : On Dienstag, 17. Januar 2017 11:21:56 CET Grégoire Barbier wrote: Le 16/01/2017 à 10:34, Olivier Goffart a écrit : > What's the use case for this function? For direct call you better of > calling the function directly, and the equi

Re: [Development] invokeMethod() with function pointers

2017-01-19 Thread Grégoire Barbier
Le 17/01/2017 à 18:11, Thiago Macieira a écrit : Em terça-feira, 17 de janeiro de 2017, às 11:21:56 PST, Grégoire Barbier escreveu: And maybe lambdas too, if there was a way to choose the thread/eventloop in which we want the lambda to be executed (but christmas was a few weeks ago, I should

Re: [Development] invokeMethod() with function pointers

2017-01-17 Thread Grégoire Barbier
() == this->thread()) foo = func(); else QMetaObject::invokeMethod(this, "func", Qt::BlockingQueuedConnection, Q_RETURN_ARG(foo)); Kind of Qt::DirectOrBlockingQueuedConnection. -- Grégoire Barbier :: g à g76r.eu :: +33

Re: [Development] Calendar Systems proposal

2017-01-14 Thread Grégoire Barbier
Not that I propose supporting it ! Don't forget that in addition to weeks being 10 days, days are also divided into 10 decimal hours, each of them counting 100 decimal minutes. It would be a lot of fun to support it. But not sure anyone actually needs that. ;-) -- Grégoire Barbier :: g à g76r.eu

[Development] Contribution proposal, mainly server-side and QtWidgets-based

2015-09-28 Thread Grégoire Barbier
ill work in progress) desktop and mobile uis -- Grégoire Barbier :: g à g76r.eu :: +33 6 21 35 73 49 ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] [RFC] What to do about overloaded signals/slots?

2013-10-07 Thread Grégoire Barbier
linux distro with old gcc versions -- Grégoire Barbier :: g à g76r.eu :: +33 6 21 35 73 49 ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] [RFC] What to do about overloaded signals/slots?

2013-10-07 Thread Grégoire Barbier
Le 07/10/2013 15:33, Olivier Goffart a écrit : On Monday 07 October 2013 12:52:48 Grégoire Barbier wrote: Hi, I'm currently porting for the first time a Qt4 app to Qt5 and meanwhile discovering new great Qt5 features, therefore I'm far from beeing an expert. However my current opinion