Hello List!
Sometimes I have a simple class, maybe a POD, that I want to
pump through a queued signal-slot connection. As I understand
it, I need a QObject to do that. So I wrap my class in QObject.
What are some good idioms for this? What is the most parsimonious
approach?
Here's one method
Hello,
IIRC you don't,
You have to Q_DECLARE_METATYPE your POD, qRegisterMetaType it and maybe
(depends on your use case) add the in/out stream operators (only if you need to
load and store in a QVariant).
Hope it helps
On 19 févr. 2013, at 14:19, K. Frank wrote:
Hello List!
Sometimes I
Op 19-2-2013 14:19, K. Frank schreef:
Hello List!
Sometimes I have a simple class, maybe a POD, that I want to
pump through a queued signal-slot connection. As I understand
it, I need a QObject to do that. So I wrap my class in QObject.
No, you don't. In fact, it is a Bad Idea(TM).
In order
Last time I tried to make a floating table dragable in a qgraphics view, I
couldn't get a drag handle on a qtable embeded in a qgraphicsview. can i do
this in qt5?
___
Interest mailing list
Interest@qt-project.org
Hi Frank,
Sent: Wednesday, 20 February 2013 12:19 AM
Hello List!
Sometimes I have a simple class, maybe a POD, that I want to pump through
a queued signal-slot connection. As I understand it, I need a QObject to
do
that. So I wrap my class in QObject.
You can pass pointers to the POD
On 19/02/2013 2:29 PM, Tony Rietwyk wrote:
Hi Hamish,
Have you tried
#pageWidgetName QPushButton
Thanks Tony, that works. I could've sworn I tried it before I posted
without success...
Hamish
___
Interest mailing list
Hi Tony!
On Tue, Feb 19, 2013 at 6:13 PM, Tony Rietwyk t...@rightsoft.com.au wrote:
Hi Frank,
Sent: Wednesday, 20 February 2013 12:19 AM
Hello List!
Sometimes I have a simple class, maybe a POD, that I want to pump through
a queued signal-slot connection. As I understand it, I need a