Re: [Interest] New connection syntax

2014-12-17 Thread Thiago Macieira
On Wednesday 17 December 2014 08:35:33 André Somers wrote: > Thiago Macieira schreef op 16-12-2014 17:13: > > On Tuesday 16 December 2014 12:41:35 Igor Mironchik wrote: > >> And my question is: is it ok to use QtPrivate::FunctionPointer in my > >> classes? > > > > No. That's only permitted for cod

Re: [Interest] New connection syntax

2014-12-16 Thread André Somers
Thiago Macieira schreef op 16-12-2014 17:13: On Tuesday 16 December 2014 12:41:35 Igor Mironchik wrote: And my question is: is it ok to use QtPrivate::FunctionPointer in my classes? No. That's only permitted for code that is part of Qt itself (hosted on qt- project.org, part of qt.git) Isn't it

Re: [Interest] New connection syntax

2014-12-16 Thread Igor Mironchik
On Tue, 16 Dec 2014 21:04:03 +0300, Thiago Macieira wrote: > On Tuesday 16 December 2014 20:31:14 Igor Mironchik wrote: >> On Tue, 16 Dec 2014 19:13:14 +0300, Thiago Macieira >> >> wrote: >> > On Tuesday 16 December 2014 12:41:35 Igor Mironchik wrote: >> >> And my question is: is it ok to use

Re: [Interest] New connection syntax

2014-12-16 Thread Thiago Macieira
On Tuesday 16 December 2014 20:31:14 Igor Mironchik wrote: > On Tue, 16 Dec 2014 19:13:14 +0300, Thiago Macieira > > wrote: > > On Tuesday 16 December 2014 12:41:35 Igor Mironchik wrote: > >> And my question is: is it ok to use QtPrivate::FunctionPointer in my > >> classes? > > > > No. That's on

Re: [Interest] New connection syntax

2014-12-16 Thread Guido Seifert
Of course there is no license restriction on using QtPrivate::FunctionPointer. And of course it is permitted to use it. It is just not a very wise thing to do. Private namespace = no guarantees, can change with every minor update. Of course, if you have full control over your deployment, i.e. you

Re: [Interest] New connection syntax

2014-12-16 Thread Igor Mironchik
On Tue, 16 Dec 2014 19:13:14 +0300, Thiago Macieira wrote: > On Tuesday 16 December 2014 12:41:35 Igor Mironchik wrote: >> And my question is: is it ok to use QtPrivate::FunctionPointer in my >> classes? > > No. That's only permitted for code that is part of Qt itself (hosted on > qt- > proje

Re: [Interest] New connection syntax

2014-12-16 Thread Thiago Macieira
On Tuesday 16 December 2014 12:41:35 Igor Mironchik wrote: > And my question is: is it ok to use QtPrivate::FunctionPointer in my > classes? No. That's only permitted for code that is part of Qt itself (hosted on qt- project.org, part of qt.git) -- Thiago Macieira - thiago.macieira (AT) intel.c

Re: [Interest] New connection syntax

2014-12-16 Thread Igor Mironchik
Hi, On Tue, 16 Dec 2014 10:49:53 +0300, Igor Mironchik wrote: > > I.e. I want to have, for example, next method in my widget: > > Something * addSomething( QObject * receiver, PointerToMemberFunction > method ); > I've answered on the second question by myself. And now I have next code in

Re: [Interest] New connection syntax

2014-12-16 Thread Igor Mironchik
Hi, On Tue, 16 Dec 2014 10:55:03 +0300, Dmitry Volosnykh wrote: Igor, have you read "New Signal Slot Syntax in Qt 5" article (http://qt-project.org/wiki/New_Signal_Slot_Syntax)? It might shed light on some of your >questions. Thanks for your reply. But this article didn't answer on my

Re: [Interest] New connection syntax

2014-12-15 Thread Dmitry Volosnykh
Igor, have you read "New Signal Slot Syntax in Qt 5" article ( http://qt-project.org/wiki/New_Signal_Slot_Syntax)? It might shed light on some of your questions. On Tue, Dec 16, 2014 at 10:49 AM, Igor Mironchik wrote: > > Hi guys, > > Qt has cool new syntax now. But some things doesn't support it

[Interest] New connection syntax

2014-12-15 Thread Igor Mironchik
Hi guys, Qt has cool new syntax now. But some things doesn't support it yet. For example look at QMenu::addAction. There is now overload with PointerToMemberFunction. And I have two questions: Is it planned to add this support, and how can I use PointerToMemberFunction in my own widgets? I.