The application of QML menu
Can create application menu from file QML (such as QMLDocument)?
Thank you
nrjg wrote:
Can create application menu from file QML (such as QMLDocument)?
Thank you
from c ++ yet
but it is easy to do, and then you can have Pages of the tha in QML
Take a look at my OpenDataSpace to Github project
You can find the code to create the SystemMenu in opendataspaceapp.cpp and then a few pages qml as 'FeedbackSheet.qml', 'PreferencesSheet.qml '...
It may be useful
Tags: BlackBerry Developers
Similar Questions
-
jQuery Mobile BB10 theme: the Application (kick-down) Menu
I use the latest released version of the jQuery Mobile BB10 theme to develop my apps. I have some questions on how to implement the Application Menu (or sliding down):
1. I understand the instructions for user interface while the Application Menu is no longer an overlay on top of the current screen (because we are used to seeing in the PlayBook OS 2 applications)? Is the Menu of the Application requires to press the entire page (or screen) down to display the menu buttons?
2. the Application Menu included in jQuery Mobile BB10 theme, or do we need to implement the set up menu and keys by using a custom code? It is relatively easy to implement this function. I just want to make sure my code matches what is in the BB10 theme.
Thank you.
Hello ProLove360,
I don't think JQuery UI BB10 theme includes a blow in the drop down menu, but the implementation of the menu to slide down to BB10 in WebWorks is not set in stone. In fact, it is very expensive (side performance) to go down the whole container to reveal the menu, therefore a superposition of the top does work better in my opinion.
You can use the example below for a shot in the menu drop-down:
https://github.com/BlackBerry/BB10-WebWorks-samples/tree/master/swipemenu
-
Can manage us the Application Switch default menu item event?
Hello
I want to do a specific action on the Application Switch (supplied default OS) menu, click point, is it possible? If
Yes, please tell me how?
I searched a few listener to be implemented for this purpose, but found nothing.
Note that I use BlackBerry API 4.3 to develop my application; But if you have any suggestions for superior versions can also provide us with.
Thank you
MINDUS
OP has opened a new Thread with a similar, but more complete question. I suggest that this discussion moves on this Thread. See:
-
How to make a menu of the application at the bottom?
Hello
I just want a built-in inside menu within the application like blackberry menu.
But if I scroll on the screen the menu should remain static. (like the iphone).
can anyone suggest me how I can do?
thankx.
In the constructor of your main screen:
Field[] menuItems = makeMenuItems(); HorizontalFieldManager menuBar = new HorizontalFieldManager(USE_ALL_WIDTH); for (int i = 0; i < menuItems.length; ++i) { menuBar.add(menuItems[i[); } setStatus(menuBar);
Then write a function makeMenuItems() that returns an array of the fields (buttons or other) you want to put in your menu bar.
-
How to create the application menu?
Hello
I want to add to the settings page for my application.
I created the application menu in the Navigation pane.
See my coding:
NavigationPane { id: navigationPane Page { id: mainpage Menu.definition: MenuDefinition { actions: [ ActionItem { title: "Action" imageSource: "asset:///images/setting.png" onTriggered: { navigationPane.push(settings.createObject()) } attachedObjects: [ ComponentDefinition { id: settings source: "setting.qml" } ] } ActionItem { title: "help" imageSource: "asset:///images/help.png" } ] } titleBar: TitleBar { title: "Main Bar" } } }
and on settings.qml
Page { id: settings titleBar: TitleBar { title: "Settings" } Container { background: Color.Yellow Label { text: "Want [Dark or White] theme selet below" } DropDown { title: "Select Theme" Option { text: "Dark" onSelectedChanged: { if (Application.themeSupport.theme.colorTheme.style == VisualStyle.Bright) { Application.themeSupport.setVisualStyle(VisualStyle.Dark); } else { Application.themeSupport.setVisualStyle(VisualStyle.Bright); } } } Option { text: "white" selected: true onSelectedChanged: { if (Application.themeSupport.theme.colorTheme.style == VisualStyle.Bright) { Application.themeSupport.setVisualStyle(VisualStyle.Dark); } } } } } }
and I see not the menu look at this picture
now, I want the solution please can someone help.
-shaishad
the definition of menu on the navigationpane
-
Hide the Application of a screen menu
Hi guys,.
I don't want to display the menu of the application for all the screen. So, how can I hide for a particular screen.
I tried with the code below, but it's not helping
Application.menuEnabled = false;
Is there a way we can hide for a particular screen?
Hello
I use request: instance()-> setMenuEnabled() in C++, but it should work in QML too. The above command seems to be OK. It is to be ignored?
You will need to re-enable the menu when the cache the screen, for example in onPopTransitionEnded if you use NavigationPane.
-
Whenever I open the tab Options in Firefox, I can access all items with the exception of the Applications menu. When I click on the Applications menu, Firefox freezes and the only way to fix is to open the Task Manager window and force a shutdown of Firefox. I use the latest version of Firefox and the updates of Windows 10.
It is normal to have a slight delay, while Firefox generates the list. If you wait more than 10 seconds, there may be a problem with the settings file that Firefox is reading.
As it is difficult to change, when there is a problem, we offer usually when you rename the file and allows Firefox to rebuild the Windows registry. Here's how:
Open the settings folder (AKA Firefox profile) current Firefox help
- button "3-bar" menu > "?" button > troubleshooting information
- (menu bar) Help > troubleshooting information
- type or paste everything: in the address bar and press Enter
In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.
Leave this window open, switch back to Firefox and output, either:
- "3-bar" menu button > button "power".
- (menu bar) File > Exit
Break while Firefox finishing his cleaning, then rename the mimeTypes.rdf to mimeTypes.old (or another name of your choice, in the case where you decide to roll back this experience).
Launch Firefox back up again and return to the Options page to specify your preference. The list will load?
-
Duplicate the application in the "open with" context menu
Hi all
On my iMac, the last OS X El Capitan.
For an example, so I mediainfo application on the app store and it works fine, no problem.
What happens if I go to a video rile, do a right-click, open with... There mediainfo twice, optionally including a version and the other a newer version if instead of upgrading to the new version of its kept the two versions?
So I look under 'Applications' and that is only once not twice.
I click and hold the icon for mediainfo in launchpad, it wiggles, I press x to delete it form party launchpad and its applications in the finder.
But there must be somewhere because he is always right click on the menu 'Open with' and it actually load the program if you choose somehow even if it isn't the disk hard mac! ?.
I did a search and don't see you mediainfo application anywhere on the disc hard mac.
I have a copy of super duper of my HDD on an external hard drive that probably the application it but can it really be getting the external application and adding it to "open with" menu and launch the application from the external hard drive? If yes then this is not cool...
I also noticed right on a PDF right-click, open with Watch 2 entrances of Safari 2 on iBooks, google chrome 2, all are an old version and one is a more recent version, where could he be getting from and the addition in the menu "open with?"
If it is picking up my applications folder on the external drive backup and using that in the open with menu and launch the application from the external backup then it is really bad, it should only be launched from applications to disk hard mac shouldn't it?
Any ideas?
.
-
How to view the application menu in the app?
Hi all
Does anyone know how to view the application menu in the app?
The ultimate effect is that when you see the user swipe down from the top of the screen, the menu of the application.Thank you very much.
Please check the recent threads or duplicate search before posting questions: http://supportforums.blackberry.com/t5/Cascades-Development/Application-Menus/td-p/1785653
-
Close application when the application switch menu item to invoke
Hello, I made application for blackberry (os 5,6,7), but it has a strange behavior.
When I press the switch application menu item, my request is close, so I can't get back to my application once I switched to another application.
I have replace my onClose to be like this
public boolean onClose()
{
This.Close ();
Returns true;
UiApplication.getUiApplication () .requestBackground ();
getApplication () .requestBackground ();
Returns true;
}but the problem remains.
Please help me solve this problem
When you change your application, the close method is not pushed directly so I think that you look elsewhere this
Try to use the Application Switch with an application example - say the sample HelloWorld application. I think he won't, which suggests that the problem is in your application.
There are three places to look:
(a) the Application disable method is pressed when the request is sent to the background. Maybe you have coded it and it closes the application
(b) you have a certain type of background processing controls (isForeground()) and reacts according to what it finds.
(c) in the method onObscured() to one of theFields/screen on the display at once. .
Other than that, I think you're looking for a general bug in your application. The starting point is to look at the debugging log when you do this - look for anything from your application you consider odd.
-
Hello
I'm trying to do something similar to the example here:
https://developer.BlackBerry.com/Cascades/reference/bb__data__xmldataaccess.html
I learned to expect problems with the QML preview, but this error occurs when you try to launch the application on my device of DevAlpha! The exact errors are:
Critical: bb::cascades::QmlDocument: error when loading QML from: QUrl( "file:///apps/com.example.rim/native/assets//main.qml" ) Critical: --- errors: (file:///apps/com.example.rim/native/assets//main.qml:3:1: module "bb.data" is not installed import bb.data 1.0 ^) Critical: bb::cascades::QmlDocument:createRootObject document is not loaded or has errors, can't create root
Note that I added the lbbdata - for the LIBS in my .pro file, so there should be no reason why the app cannont find bb.data! Has anyone else seen this problem or found a solution? It is essentially blocking any progress on my app!
Thank you
Nick
try to including this line in your hand:
BB::data:ataSource::registerQmlTypes();
the notes say that this has been deprecated in version gold but it doesn't seem to be the case... I created a new project using the sdk of gold and had the same problem you did if I used a data source class above the fixed line!
false documents:
https://developer.BlackBerry.com/Cascades/documentation/dev/upgrading/index.html
-
Can headless part of the application calls a function QML?
Normally, when you write code in c ++ in the part of the user interface of the code, I am able to call the function of any file QML by writing the code below.
QmlDocument *qmldoc = QmlDocument::create("asset:///Functions.qml"); AbstractPane *root = qmldoc->createRootObject
(); QMetaObject::invokeMethod(root, "printResult"); In headless of demand, I create another qml file, called "NotificationHandler.qml" in the current folder of the game without head. In one of the file c ++ without head when I write the same thing, it gives an error indicating that
C:/bbndk/target_10_3_0_698/qnx6/usr/include/bb/cascades/resources/qmldocument.h:366: undefined reference to `bb::cascades::QmlDocument::QmlDocument(QUrl const&)'
Below, you will find all the code inside the service.cpp which is the game file without the application head.
#include "service.hpp" #include
#include #include #include #include #include #include using namespace bb::cascades; using namespace bb::platform; using namespace bb::system; Service::Service() : QObject(), m_notify(new Notification(this)), m_invokeManager(new InvokeManager(this)) { m_invokeManager->connect(m_invokeManager, SIGNAL(invoked(const bb::system::InvokeRequest&)), this, SLOT(handleInvoke(const bb::system::InvokeRequest&))); NotificationDefaultApplicationSettings settings; settings.setPreview(NotificationPriorityPolicy::Allow); settings.apply(); m_notify->setTitle("NotificationWork Service"); m_notify->setBody("NotificationWork service requires attention"); bb::system::InvokeRequest request; request.setTarget("com.example.NotificationWork"); request.setAction("bb.action.START"); m_notify->setInvokeRequest(request); onTimeout(); } void Service::handleInvoke(const bb::system::InvokeRequest & request) { if (request.action().compare("com.example.NotificationWorkService.RESET") == 0) { triggerNotification(); } } void Service::triggerNotification() { qDebug() << "first"; QmlDocument *qmldoc = QmlDocument::create("asset:///NotificationHandler.qml"); AbstractPane *root = qmldoc->createRootObject (); QMetaObject::invokeMethod(root, "startNotificationService"); qDebug() << "second"; // Timeout is to give time for UI to minimize // QTimer::singleShot(2000, this, SLOT(onTimeout())); } void Service::onTimeout() { Notification::clearEffectsForAll(); Notification::deleteAllFromInbox(); m_notify->notify(); } I use the same logic, but apparently it is forbidden to treat the QML files in without the request or I have made a serious mistake. Could you please help?
I thank very you much.
usually the part without head does not reference libraries of stunts because they have a serious memory footprint.
The part without being limited in memory head, which gives it its own UI isn't usually a good idea. -
I have a navigationPane with an Application Menu. One of the items in this menu is settings so
When I click on parameter I shows the Settings Page but I would like to turn off the Menu of the Application
When the user on the Configuration pageI put in the onCreationCompleted of my settingPage
Application.menuEnabled = false;And when I click on the back button I do:
Application.menuEnabled = true;
navigationPane.pop ();However, the Application Menu is always displayed in the settings page, so how can I disable it?
I did it!
When I press settings page, I disbale the application from the page menu, then
ActionItem { title: "Preferencias" imageSource: "asset:///images/ic_settings.png" onTriggered: { var page = getPreferenciasPage(); page.onRefreshDropDownLicencia.connect(onRefreshDropDownLicencia); Application.menuEnabled = false; navigationPane.push(page); } function getPreferenciasPage() { if (! preferenciasPage) { preferenciasPage = idPreferenciasPage.createObject(); } return preferenciasPage; } },
-
Application crashes by exiting the application through controls dial with the context menu open
Hi, I have a weird problem which I don't know even where start problems.
When inside the user application appears menu contextual and with open context menu press the dial button on hang up button the application leaves as planned, but as he tried to return to the app, it freezes and you have to hard reset the phone (tour market)
He can't get on the emulator.
Confirmed the "BOLD", storm and curve.
You go out via UiApplication.deactivate () and re - enter via UiApplication.activate ().
-
Using the Menu button to close the Application
Hi all, as a topic, I would like to ask how to implement the menu button to close the application? I mean there is option close when I'm menu press the button you want to close the application, if I press on it, what should I do about it?, thanks for your kindly help :-) so
This is the default feature, you don't need to do something
Maybe you are looking for
-
Omen of HP 15: How to get rid of startmenu?
Hi, recently I had the problem of driver signing does not check. It's fixed now, but whenever I start my laptop, it instantly opens the startmenu HP where you can access the BIOS settings and other things. I would like to know how can I do so that it
-
How to select items programmatically in a tree
Hello I'm looking to persist selection from the tree in my application (save when closing a file, load from the file to the opening), but I can't understand how programmatically select an item in a tree on the charge. I would like to select the item
-
A 'ATAPI DVD A DH16A1L"installed in my computer DVD cannot read or write DVDs
A 'ATAPI DVD A DH16A1L"installed in my computer DVD cannot read or write DVDs. Please help me solve the problem.
-
Removing the 512 MB card (1 slot) and replacing it with a 2 GB card works fine. Relocation of the 512 MB card in the Groove 2 also works very well. Replacement of the 512 MB card in slot 2 with a 2nd 2 GB card does not work. Power led of the compu
-
LifeCam Cinema facility with no Internet
Is there really no way to install the software without internet access? I need to install this on a computer that has no internet and don't want to be forced to buy a network card in order to install a software that has no reason for needing internet