Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Super Contributor
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

How to create an image button in C++

Purpose: Creating a image button in C++ code insteal of QML because we met many issue for QML to start Video camera.

 

Could you help me to check my code?

 

Mini code:

mStartStopButton = ImageButton::create.defaultImage(QUrl("buttons/Record-Normal-80x80.png")).onClicked(this, SLOT(onStartStopRecording()));

mStartStopButton.pressedImage(QUrl("Record-Normal-80x80.png"));

 

Thanks your attention,

 

 

 

-Fight with BB10
Developer
Posts: 36
Registered: ‎11-12-2012
My Device: aa
My Carrier: aa

Re: How to create an image button in C++