Re: [Interest] How can I use QPointer as an argument?

2015-01-14 Thread Guenther Boelter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks  Constantin, Bo and André, it's working now. And yes, it was not really a good question but that day I was a little bit nervous because the end of my timeline was very near already.

Re: [Interest] How can I use QPointer as an argument?

2015-01-13 Thread Bo Thorsen
Den 13-01-2015 kl. 04:13 skrev Guenther Boelter: I have a 'small' problem and my timeline is running so fast ... How can I use QPointer as an argument? A simple void myFunction( QPointer *myPointer ) { // do something } myFunction( myPointer ); returns 'error: ‘QPointer’ is not a

Re: [Interest] How can I use QPointer as an argument?

2015-01-13 Thread André Somers
Guenther Boelter schreef op 13-1-2015 om 04:13: Sorrry, I have a 'small' problem and my timeline is running so fast ... How can I use QPointer as an argument? A simple void myFunction( QPointer *myPointer ) { // do something } myFunction( myPointer ); returns 'error:

[Interest] How can I use QPointer as an argument?

2015-01-12 Thread Guenther Boelter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorrry, I have a 'small' problem and my timeline is running so fast ... How can I use QPointer as an argument? A simple void myFunction( QPointer *myPointer ) { // do something } myFunction( myPointer ); returns 'error: ‘QPointer’ is not a

Re: [Interest] How can I use QPointer as an argument?

2015-01-12 Thread Constantin Makshin
QPointer is a template class and therefore can't be used by itself, i.e. without specifying the template parameter. In your case you should either: 1) specify a particular QObject-related class in the declaration/definition of myFunction(), e.g. void myFunction (QPointerQWidget* myPointer)