10-18-2012 09:32 AM
I get the error when running the app:
PVR
Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_PREGEN_BUFFER [778, /eglglue.c]
This only has occcured sine I have added in passing a touch via signal/slot. The signal/slot worked fine before I passed the touch value.
I was just wondering if I was going wrong somewhere:
h:
public slots: void HandleImgTouch(bb::cascades::TouchEvent* event);
implementation:
bool res = QObject::connect(myImage, SIGNAL(touch(bb::cascades::TouchEvent *)), this, SLOT(HandleImgTouch(bb::cascades::TouchEvent* event)));
void MyClass::HandleImgTouch(bb::cascades::TouchEvent* event)
{
if (event->touchType() == TouchType::Down)
{
//do something
}
}
10-30-2012 06:34 PM
I think that you should change the SLOT parameter from
SLOT(HandleImgTouch(bb::cascades::TouchEvent* event))
to
SLOT(HandleImgTouch(bb::cascades::TouchEvent*))
According to the Touch Interaction documentation https://developer.blackberry.com/cascades/document