Hi,
Why this code don't connect,
bool bC1 = connect(this,SIGNAL(emetreImatge(const HImage&,bool,int,int)),
(QObject*)m_pqMagicQt,
SLOT(PintarImatge
(const HImage
&,
bool,
int,
int)),
Qt::QueuedConnection);
bool bC1 = connect(this,SIGNAL(emetreImatge(const HImage&,bool,int,int)),
(QObject*)m_pqMagicQt,SLOT(PintarImatge(const HImage&,bool,int,int)),
Qt::QueuedConnection);
To copy to clipboard, switch view to plain text mode
and this other one connect:
bool bC1 = connect(this,SIGNAL(emetreImatge(HImage,bool,int,int)),
(QObject*)m_pqMagicQt,
SLOT(PintarImatge
(HImage,
bool,
int,
int)),
Qt::QueuedConnection);
bool bC1 = connect(this,SIGNAL(emetreImatge(HImage,bool,int,int)),
(QObject*)m_pqMagicQt,SLOT(PintarImatge(HImage,bool,int,int)),
Qt::QueuedConnection);
To copy to clipboard, switch view to plain text mode
I have redefined the slot with "const HImage&" in the first way but it doesn't going well.
I have looked at "examples/threads/mandelbrot" and I am doing the same: conecting one working Thread with the Main Thread(for GUI displaying).
I also have registered the "HImage" with:
int iIDRImatge = qRegisterMetaType<HImage>("HImage");
int iIDRImatge = qRegisterMetaType<HImage>("HImage");
To copy to clipboard, switch view to plain text mode
Any idea?
Thanks,
Bookmarks