Custom control does not?
I tried to implement a custom for my application control, but it does not phase is...
Help, please...
/* * ImageSlider.cpp * * Created on: Jun 10, 2013 * Author: lalthomas */ #include "ImageSlider.h" #include#include #include #include #include #include using namespace bb::cascades; ImageSlider::ImageSlider (Container *parent) : CustomControl(parent) { m_Container = new Container(); m_Container->setLayout(new AbsoluteLayout()); Sample->setText("Hello"); m_Container->add(Sample); for(int i=0;i<12;i++){ m_Trackers[i] = ImageView::create().image(QUrl("asset:///images/bullet-24-24.png")); m_Container->add(m_Trackers[i]); } setRoot(m_Container); setPreferredSize(600,600); }
/* * ImageSlider.h * * Created on: Jun 10, 2013 * Author: lalthomas */ #ifndef IMAGESLIDER_H_ #define IMAGESLIDER_H_ #include#include #include #include namespace bb { namespace cascades { class Container; class ImageView; class TouchEvent; } } class ImageSlider: public bb::cascades::CustomControl { Q_OBJECT public: ImageSlider(bb::cascades::Container *parent = 0); virtual ~ImageSlider(); private: float m_width; float m_height; bb::cascades::ImageView *m_Trackers[12]; bb::cascades::ImageView *m_SlideImages[12]; bb::cascades::Image m_Tracker; bb::cascades::Image m_TrackerCurrent; bb::cascades::Container *m_Container; bb::cascades::Label *Sample; }; #endif /* IMAGESLIDER_H_ */
// Default empty project template import bb.cascades 1.0 // creates one page with a label Page { Container { layout: DockLayout {} Label { text: qsTr("Hello World") textStyle.base: SystemDefaults.TextStyles.BigText verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center } ImageSlider { id: slider horizontalAlignment: HorizontalAlignment.Center verticalAlignment: VerticalAlignment.Center } } }
// Default empty project template #include "applicationui.hpp" #include "ImageSlider.h" #include#include #include using namespace bb::cascades; #include #include ApplicationUI::ApplicationUI(bb::cascades::Application *app) : QObject(app) { // Register our custom control qmlRegisterType ("custom.lib", 1, 0, "ImageSlider"); // create scene document from main.qml asset // set parent to created document to ensure it exists for the whole application lifetime QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this); // If the QML document is valid, we process it. if (!qml->hasErrors()) { // Create the application Page from QMLDocument. Page *appPage = qml->createRootObject (); if (appPage) { // Set the main scene for the application to the Page. Application::instance()->setScene(appPage); } } }
In short, I'd add this in your QML file...
import custom.lib 1.0
Tags: BlackBerry Developers
Similar Questions
-
Custom in OPA - control does not
We have an OPA modules with added custom control which is responsible for the Oracle Service Cloud controller file. But we continued a long list of similar to the following error messages:
===================================
Error analysis of the model: screen.vm
com.oracle.determinations.interview.web.common.exceptions.error.TemplateParseError: error analysis of the model: screen.vm to com.oracle.determinations.interview.web.common.templatingengine.local.VelocityTemplatingEngine.mergeTemplate(VelocityTemplatingEngine.java:126) to com.oracle.determinations.interview.web.common.templatingengine.ScreenRenderer.getHTMLPage(ScreenRenderer.java:107) to com.oracle.determinations.interview.web.common.templatingengine.ScreenRenderer.getHTMLPage(ScreenRenderer.java:49) to com.oracle.determinations.interview.web.common.controller.ScreenController.renderScreen(ScreenController.java:140) to com.oracle.determinations.web.platform.controller.actions.InvestigateAction.getResource(InvestigateAction.java:67) to com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.processRequest(WebDeterminationsServlet.java:247) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doGet(WebDeterminationsServlet.java:174) at javax.servlet.http.HttpServlet.service(HttpServlet.java:618) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter) ApplicationFilterChain.java :206) to com.oracle.determinations.web.platform.servlet.URLFilter.doFilter(URLFilter.java:152)
=============================
Help, please
Thank you
Shakur
This error message is usually because the implementation of the custom control is not accessible from the hub of the takeover bid, possibly a URL miss typed or that the control itself is broken and does not return HTML. Can you try one of the provided Express.ypH and see if it works for you.
-
the custom words does not appear in my iPhone
Hello
I joined my iPhone IOS 10 6 more and I noticed that the custom words does not appear in my iPhone, even if I have them in my iTunes library. I signed up with the same Apple ID on all devices. Very few of them, I can access the lyrics in my phone, but not all of them (as he used to be in iOS 9)
any help is appreciated.
Thank you
Ahmed
I downloaded a program on my Mac (no app store unfortunately) called "get lyrical". automatically add lyrics to iTunes. Then in iTunes file > library > Update music library to iCloud. doing this during the last 20 minutes and so far it seems to work.
-
HP 15-500LA OMEN: HP OMEN LIGTH CONTROL DOES NOT WORK
Hello
I just got a 15 HP on August 22 and omen control does not change the diodes. The first thing I did is you update Windows 8 Windows 10. OS is in Spanish
Control of omen for change the light does not work.
Can sombody help me to make it work? I'd appreciate help amny
Thank you so much IMaxx
I've updated the utility HP System Event and after the reset of the system, it works now
Thank you once again
-
Satellite X 200 - after upgrading Vista remote control does not work
Hello
I have upgrated my Vista Home Premium to Vista Ultimate and the remote control does not work. Well upgraded... I bought Vista ultimate and it installed.
Is there a driver for my remote?
You may need to install the infrared driver.
This driver is required to activate the infrared port on your laptop.You can find it here in the X 200 section
http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp -
Re: Satellite L500 iCQ, as Volume Rotary control does not work
Front volume control does not work. Volume is set to maximum and can only be controlled by the mouse and the slider control.
Can anyone help?To be honest I don't think that anyone will be able to help you with this.
As far as I know that's not used such mechanical volume on older models of computers laptops, but electronically part controlled by software, so the only thing you can do is to test the functionality with the settings and see if the problem will be the same.What else can you do? I do not know. Maybe update the BIOS, but I do not think that this will help you.
Do you use pre-installed OS original you got with your laptop?
Have you made some changes or anything that can have a negative influence in this?
Since when you noticed this strange behavior? -
Satellite P100 remote control does not work
Hello
Guys, I bought a toshiba satellite p100 and the remote with it does not work...
no idea why? the battery must be fully charged... but when I press the buttons of the led on the remote control does not work or the other...
Help, please...
Thank you...
Post edited by: qazam
Hi Qazam
How did you test the remote control?
What do you mean who does not? Some functions does not work or a complete remote control cannot be used?I read the user manual and it seems that the remote will work under Windows mode with WinDVD or Express Media player, and Windows Media Player when the laptop was not started in the Windows operating system.
-
IR remote control does not work with the new imac
IR remote control does not work with the new iMac. From 24 "2007 machine to last 27"
Correct, because Apple no longer includes the IR sensor in newer models
-
"parental controls does not allow this game begins" without any restrictions applied
I get the window ' parental control does not this game start "when I try to run a game and all settings are disabled.
Hello helicopter-Guy,.
Welcome to the Microsoft answers site.
I would like to ask you a few questions in order to get a better understanding of this issue.
· What is the operating system installed on your computer?
· Did you the latest changes on the computer?
· Logged in as the administrator of the computer?
· What game you try play?
You get this error usually when parental control is set by the administrator for your user account.
I suggest that you try to run the game as administrator and check, if you are able to play the game.
Right-click on the game, click Run as administrator.
If the problem persists, then I suggest that you install the game in Vista compatibility mode and check if you are able to play the game.
See the link to run programs in compatibility mode: make sure to run older programs in this version of Windows: http://windows.microsoft.com/en-us/windows-vista/Make-older-programs-run-in-this-version-of-Windows
Swathi B - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think. -
My speakers suddenly stopped working. I went to audio and I received a message sound card may be in use. The volume control does not appear atr from the bottom of the screen and when I go into properties, everything is gray.
Hi BarbaraEvanchik,
· What is the brand and model of the computer?
· Did you do changes on the computer before the show?
Follow the steps in the article.
How to troubleshoot sound problems in Windows XP
For reference: no sound in Windows
-
Original title: Parental control does not
Try to set up Parental controls for my son's account. I have an account manager, go to control panel / user accounts / parental control - click on windows expects to obtain two error message with the same message: "unable to make changes to parental controls settings. If the problem persists, see your system administrator. "I'm a sysadmin, so what's the problem?
On a side note, I have two children on this computer. Had to remove my son because he downloaded a virus. So before the two children had parental control. But when we were going to change their times permit, he would give this error message but weather changes would take place. Now that I am setting up a new account for him, can't get parental controls to work.
Hello
Step 1: turn off UAC (User Account Control) and check the result
See how can I change the behavior of user account control by using the slider? :http://windows.microsoft.com/en-US/windows7/How-do-I-change-the-behavior-of-User-Account-Control-by-using-the-slider
Note: You must restart your computer when you enable or disable UAC. Change levels of notification does not require that you restart your computer.
Step 2: I suggest to create a new administrator account and log later in the new administrator account, try to set parental controls and check if it works.
Create a user account
http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account
Check out the link below to check if the parental control is correctly defined
http://Windows.Microsoft.com/en-us/Windows7/set-up-parental-controls
Diana
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.
If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
My Vaio gesture control does not work with MO Pro 2013 Power Point and 14 Ultra CyberlinkPDVD
My Vaio gesture control does not work with MO Pro 2013 Power Point and 14 Ultra CyberlinkPDVD
Original title: control sign Vaio
Hello
According to my research, the actions must be enabled for individual applications. Check out the following link and activate the gesture for Power Point and Cyberlink PDVD.
For more help, you can contact Sony support.
https://community.Sony.com/?XID=M:kb_header:eSupport
Hope that the information provided is useful. Do not respond if you need more help.
-
control does not. All I get is a red tint. Suggestions please. Everything is updated recently.
Hi DMTollefsrud,
Greetings.
- What version of LR you use.
- Make sure that when you use the adjustment brush "See the selected mask overlay" is unchecked.
Concerning
Rohit
-
My custom workspace does not randomly. Restart the application sometimes fix it.
Y at - it a fix for the problem of my custom workspace does not not every time? I was hoping that it was just a problem with CC2014. I'm under CC2015 now.
Quit Illustrator
Run disk utility and set your permissions.
Finder (hold down the Option key) > select Library > obtained in this folder
/ Library/Application Support/Adobe/Adobe Illustrator 19.
Adobe Illustrator 19 and rename old Adobe Illustrator 19
Start Illustrator
I would upgrade to El Capitan.
-
Drawing a custom profile does not work for me. It works for you?
Drawing a custom profile does not work for me. It works for you?
I can only apply on an existing line, but cannot make a new one with the selected profile. In fact if I change the profile other than the default uniform I also can't draw a new stroke with any other width than the default 1 point. This does not seem normal.
Use the SC5 on a PC.
You have "Art has basic appearance nine" checked in the appearance Panel Menu? If Yes... Clear the check box, and then try again.
Maybe you are looking for
-
I bought a Milanese band but my wrist is bigger and I need to add an Extender. I'm looking for an appropriate extendere.
-
Turn on pure AT10A - when the Jelly Bean 4.3 update would be available?
I saw on CIHI people who have one excited pro indicating they had updated JB 4.3 and it's the same situation in the USA forums. We have two exciting pure at the end of December and I expect, logically, to see the update 4.3 (and KitKat) to be put at
-
I am currently a few problems about the symbols reserved inside the report menu 11 Diadem. I know that maybe this is a silly question, how can I force symbols like @ # is displayed correctly on the screen instead of bind external variables? Thanks in
-
Remove particles that overlap?
I'm looking for an effective way remove the my binary image that overlap. Image 1 is the current seuillee image Image 2 are the particles that are bad Image 3 is the combination of image 1 and image 2 I want to remove particles that are 'overlap '. E
-
After normal closing of Windows XP, the computer displeys message: now is to turn off the computer. It requires manual deactivation. Beginning is normal.VD