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,"ago&

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 m1 { {2, &q

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

2017-07-13 Thread Grégoire Barbier
is too narrow to contain. » Pierre de Fermat, 1637 A.D. Took 356 years to be proven actually. Anyway compiling JS to C++ was not your first goal if I undestand well. Maybe getting rid of GC is possible without compiling JS. And it may be interesting for compiled languages that do use a GC to, li

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

2017-07-12 Thread Grégoire Barbier
l 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

Re: [Development] invokeMethod() with function pointers

2017-01-21 Thread Grégoire Barbier
Anyway the other ideas 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 eq

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 ::

Re: [Development] Calendar Systems proposal

2017-01-14 Thread Grégoire Barbier
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 à g7

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

2015-10-01 Thread Grégoire Barbier
because they don't find Qt suited for that, because most people think that Qt is just a gui toolkit, or because some tools are lacking. I personnaly needed features present in QProcess and QNetworkAccessManager, in a portable way, and an event loop. Qt is great on the server-side, to me. :

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

2015-09-28 Thread Grégoire Barbier
web ui, and its (still 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
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

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

2013-10-07 Thread Grégoire Barbier
ill be able to afford being tight to C++11, which I'm not yet because of all that old 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