Two documents qml, a normal application, one to share the preview card generator
Hey. Read and experiment - what is the proper way to load a qml document when the application is opened normally and the other when the application is invoked as a previewer of card using a share action? I guess you can't mess with main and the createqmldoc and the setscene must be in the constrcutor.
How could I go about this?
Appreciate the help,
See you soon
Justin D.
We use startupMode to check how the application was launched
switch (invokeManager->startupMode()){
in the case of ApplicationStartupMode::LaunchApplication we init the complete user interface, otherwise wait us signal invoked and go from there.
Tags: BlackBerry Developers
Similar Questions
-
Original title: error loading of C:\Document and Setting\user_name\Application Data\wlaplg.dll the specified module could not be found
For two or three weeks there whenever I boot my netbook and connect to my user account window I found this error message RUNDLL pop-up window:
Error loading of C:\Document and Setting\myusername\Application Data\wlaplg.dll
The specified module could not be found
What is the problem? and how to solve?
Hello
Click on Start menu and click Run.
Inside run, type MSCONFIG and press Ok.
Now, you will get a System Configuration window.
Inside you go to the tab called start-up
In the Startup tab, you can see a list of files from loading when you start the computer.There, you can see the above file Rundll32, "C:\Document and Setting\user_name\Application Data\wlaplg.dll ' like this.
A chech this one and press apply and press Ok.
Now you will be asked to restart the computer.The problem will be solved after restarting...
-
Hello! I'm currently experimenting with a new application and I was wondering if it is possible to use a card sharing to share text that it is in a text box in another document QML?
Here's the code, two pages:
EditSheetqml
import bb.cascades 1.2 Sheet { id: editSheet // Custom properties property alias title: addBar.title property alias hintText: itemText.hintText property alias text: itemText.text // A custom signal is triggered when the acceptAction is triggered. signal saveBucketItem(string text) Page { id: addPage titleBar: TitleBar { id: addBar title: qsTr("Add") + Retranslate.onLanguageChanged visibility: ChromeVisibility.Visible dismissAction: ActionItem { title: qsTr("Cancel") + Retranslate.onLanguageChanged onTriggered: { // Hide the Sheet. editSheet.close() } } acceptAction: ActionItem { title: qsTr("Save") + Retranslate.onLanguageChanged onTriggered: { // Hide the Sheet and emit signal that the item should be saved. editSheet.close(); editSheet.saveBucketItem(itemText.text); } } } Container { id: editPane property real margins: 40 background: Color.create("#f8f8f8") topPadding: editPane.margins leftPadding: editPane.margins rightPadding: editPane.margins layout: DockLayout { } attachedObjects: [ TextStyleDefinition { id: editTextStyle base: SystemDefaults.TextStyles.TitleText } ] Container { TextArea { id: itemText hintText: qsTr("Add a new item to your to-do list") + Retranslate.onLanguageChanged topMargin: editPane.margins bottomMargin: topMargin preferredHeight: 575 maxHeight: 575 horizontalAlignment: HorizontalAlignment.Fill textStyle { base: editTextStyle.style } } }// Text Area Container }// Edit pane Container }// Page onOpened: { itemText.requestFocus() } }// Sheet
BucketPage.qml
import bb.cascades 1.2 // This details Page for a bucket item that shows the entire task contained in a bucket // item and adds functionality for editing the item. Page { id: bucketPage property variant item property variant bucketModel property alias title: titleBar.title titleBar: TitleBar { id: titleBar visibility: ChromeVisibility.Visible } Container { layout: DockLayout { } Container { leftPadding: 22 rightPadding: leftPadding horizontalAlignment: HorizontalAlignment.Left Label { id: bucketText multiline: true text: bucketPage.item.title textStyle.base: SystemDefaults.TextStyles.TitleText } } } shortcuts: [ SystemShortcut { // The edit short cut shows the edit sheet. type: SystemShortcuts.Edit onTriggered: { editSheet.open(); editSheet.text = bucketText.text; } } ] actions: [ ActionItem { title: qsTr("Edit") + Retranslate.onLanguageChanged imageSource: "asset:///IMG/ic_edit.png" ActionBar.placement: ActionBarPlacement.OnBar onTriggered: { editSheet.open(); editSheet.text = bucketText.text; } }, ActionItem { ActionBar.placement: ActionBarPlacement.OnBar title: qsTr("Share") imageSource: "asset:///IMG/ic_share.png" onTriggered: { shareAction.trigger("bb.action.SHARE") } } ] // itemText is the id of the TextArea in the EditSheet qml document - I would like to be able to share that text but from within this document. attachedObjects: [ Invocation { id: shareAction query.mimeType: "text/plain" query.invokeActionId: "bb.action.SHARE" query.data: qsTr("Check out my recent item: ") + itemText + qsTr("\n\nGet your free copy at: http://appworld.blackberry.com/") query.onQueryChanged: { query.updateQuery() } }, EditSheet { id: editSheet title: qsTr("Edit") + Retranslate.onLanguageChanged hintText: "Update your description" onSaveBucketItem: { // Call the function to update the item data. bucketModel.editBucketItem(bucketPage.item, text); // Update the current item property data used in this Page to do this // one has to copy all values to 'tempItem'. var tempItem = bucketPage.item // Update the item property tempItem.title = text // Then copy all values back to 'bucketPage.item' bucketPage.item = tempItem } } ] }
What I'm asking is, so it is possible to use the button share (on the action in BucketPage.qml bar) to share the text of text box id: Texteelement (from the EditSheet.qml) is possible to share the text in the document sharing in BucketPage.qml EditSheet.qml?
Any help would be greatly appreciated!
Thanks in advance
Thanks for your help, but I always had the same problem when using your code example.
I played around with a few things and by changing this line of code.
query.data: qsTr("Check out my recent item: ") + editSheet + qsTr("\n\nGet your free copy at: http://appworld.blackberry.com/")
in this line of code.
query.data: qsTr("Check out my recent item: ") + ("'") + bucketText.text + ("'") + qsTr("\n\nGet your copy at: http://appworld.blackberry.com/")
Seemed to have solved the problem
-
Show the files to the top two places and I cannot delete one without deleting the other
Hello
I'm trying to clean up a laptop computer slow execution that is running Windows 7. I transferred a bunch of photo files of my image on an external hard drive folder and then deleted all the photos from my hard drive. Everything seemed to be going great. Then I noticed a bunch of files in my photo folder that shouldn't be there. One was a big file I have on my desk. I deleted it from the photo folder is not there, but it is also removed from my office. I restored the file from the Recycle Bin, and it restored in two places.
For some reason, several files from other regions (such as the office and downloads) are also appear in my pictures folder. I thought that they were just copies, but they must be the same files just somehow in two places at once, since each copy deletes when I delete one. How to disassociate the and get rid of the excess files?
I tried to find the answer with a Google search, and I learned that it is not the best idea to save documents and folders on the desktop. I will do that more. But how to untie all of these files so I can delete one and not the other?
Thanks a lot for your suggestions!
Jen
Look carefully at what you use. The library is entirely different from the image in folder. The library is just a quick way to see several places at the same time (nothing can ever be "stored" within a library).
Exercise: Right click in your image library and choose "Properties". Here you will see all the places that will appear in the display of image library. You probably, some places are represented in this library that are not intended to be. No problem, you can remove them from the list.
Remember that the library is showing a simple view combined all these places you. The files are always stored in original places and when you remove the library view, you delete the original.
-
Is it possible to join/merge two conference calls in MCU for one call in the same MCU
Situation - endpoint is part of two meetings of MCU (with one call on hold). I want to merge these two meetings to the MCU. Is there a way. MCU is 45xx series and this is a deployment of VCS - MCU. Thanks in advance.
No way to merge that I know, I've had similar scenarios and there is no automatic way to do it, the Conference, the participants will have to unplug one and join the other. Multiway will not work because that is intended to the unique endpoints being transmitted to a MCU, no MCU is not lift themselves.
-
How my access application may file on the SD card
Hello to the developers, please how my access application on the SD card/media files
[reformatted in subject line]
check the fileexplorerdemo of shipment with the jde/ejde.
and the problem with your capslock.
-
Just implement the 4630 and in the list of printers on the Applications, I have 4630 series and the 4630 [F4COCE]. Printed wireless and the other not. I have the fax 4630 also but you have yet to try. Why have I not two in the list of printers, and I would like to delete a?
Hi BreezyP,
Welcome to the HP Forums!
I see that you have two printers on your Mac, and you wonder why. I'm happy to help with this problem!
In my view, the second printer that does not print wireless, is the connected USB printer. If you unplug the USB cable connecting the two ends of the Mac and the printer, it should show offline.
Regarding the deletion of a printer, it's a personal preference, if you do not use the USB cable at all, I would personally delete the one which is not wireless.
The fax printer is used for the fax from Mac.
Hope that answers your question and have a great day!
-
Newbie here... Put two side by side logo and one caption under the other
Hello
It has been a few days learn how to buid a site using css. I want to add two logos (png format) in my header div side by side and add a caption under the second logo located on the right and also I would like to place the second bit of lower than the first logo logo.
This is the style of the #header div I created
#header {}
Width: 980px;
height: 181px;
margin: 0 auto;
margin-left: 20px;
padding-left: 15px;
background: url(images/img02.jpg) no-repeat left top;
}
Here, I have created two more div for two logos and what on the legend.
I want the result something like this
Use text-align center:
#logoRight p {}
text-align: center;
}
-
Merge two similar steps to UPDATE in one step of the UPDATE
I have a update of two stages of work process
UPDATE table
SET status = 'Y', last_status_date = SYSDATE
Situation WHERE = me ' AND tag_id IN)
SELECT t2.tag_id
FROM table2 t2
JOIN table3 t3 ON t3.id = t2.id
WHERE t3.some_criteria =: i_criteria
);
COMMIT;
UPDATE table
SET status = 'n', last_status_date = SYSDATE
Situation WHERE = am';
COMMIT;
The objective of the above process is if records must in specific status change a them a different status based on criteria in other tables.
I was wondering if the two steps could be combined in a single step; a single UPDATE statement.
I thought to SET status = NVL ((SELECT 'Y'... critères), ' don't) but the table3.some_criteria column is not indexed and will not in the future, so full table scan would be required in each time (?).
Any ideas or should I leave work only code?UPDATE tbl SET status = case when tag_id IN ( SELECT t2.tag_id FROM tbl2 t2 JOIN tbl3 t3 ON t3.id = t2.id WHERE t3.some_criteria = :i_criteria ) then 'Y' else 'N' end, last_status_date = SYSDATE WHERE status = 'M';
SY.
-
Windows Explorer crashes when moving from one network to the other card
Hi people,
Here's my problem: I suspect his cause and resolution will be very simple, but I can't find an answer until now.
I use a laptop Windows XP SP3, joined to a domain in native mode Windows 2003.
As is common these days, the portable computer is multihomed, with a card Intel Gigabit Ethernet and Intel combined 802.11n / Bluetooth adapter.My problem is this: I often need to take me off the cable to the office network and join a wireless network. This is how I can access our assets via public IP addresses to avoid NAT issues ' ing. In general, I do this simply by pulling the ethernet cable, then activation of the wireless adapter and join the required network. Note tehre is no firewall or filtering with the wireless network, and it uses NAT.
In about 10 seconds, Windows Explorer will be locked up for about 15 seconds, then return to life. This behavior is repeated on what seems a fairly short cycle, perhaps every minute.
While I think it could be linked to the machine looking for domain resources, the command binding adapter or similar, I was unable to make an impact on this behavior.
If I return the config by disabling my adapter wireless and reconnect the wired adapter, everything returns to normal and performance is as expected.
I have not tried to change binding adapter - my wireless adapter was higher than the wired NETWORK adapter already but seemed worth - no dice.
I also tried releasing the config on the wired adapter, DNS and ARP cache flush, and then connect the wi - fi. See no difference.I'd love to hear any constructive suggestions how to solve this problem; attempts to use ProcMon and Wireshark for the cause were unsuccessful, but maybe I'm looking at the wrong data.
Let me know what you might like information and I'll see if I can give him.
Thank you
Stevie
Hi Stevie,
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:
http://social.technet.Microsoft.com/forums/en/itproxpsp/threads
-
Acer Aspire one 722 / is the sound card removable or welded.
I need to know if the card its 722 is attached to the motherboard or a plug-in.
Audio 3.5 mm output jack is soldered on the motherboard is in most laptops and netbooks and does not have the ability to replace or change the sound card as you would on a desktop computer. I hope this helps!
-
I really need to buy some Ae but I can't because the page has problems with the direction of the Bill, but I already 2 programs of CC so I don't understand
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===>===> NOTE DAYS AND TIME
Don't forget to stay signed with your Adobe ID before accessing the link belowCreative cloud support (all creative cloud customer service problems)
http://helpx.Adobe.com/x-productkb/global/service-CCM.html -
I was already able to open two documents Acrobat, and then close one of them without the two close. Since I installed the CD player, whenever I close a file Acrobat, all of them nearby. Is it possible to open a file by closing the other?
Close the tab of the document or use the file menu > close
-
Pages cannot be split for two documents?
I have a MacBook Pro (2015) with macos beta Sierra (although that has happened with the beta no El Capitan.
I can't ever two pages of documents to work in split view. Never. It's infuriating as a Publisher. Can anyone help? I want to see two documents side by side.
I hit the green button full page and drag it sideways, when I click on another of open pages it says "split view is not available"
What.the.Heck.
This isn't a beta support site, and the terms of use for these communities to support Apple open prevents us from discussions on beta products. Incidentally, you try to use a published version of Pages on a beta version of Mac OS X, and there is no assurance that split currently working properly on this beta product, or that the version of the Pages is fully compatible with it either.
You can open the same document twice in the Pages, and position-by-side, the documents are not open to the exact location in the file system. In El Capitan, I have no problem placing a first-page document in split and then view by clicking on the second to fill the other half of the screen.
-
The auto-start applications and memory of the phone...?
I was wondering if there is a way to push off the loading application autostart until after the SD card / memory Store is available. I'm having a problem with an app that I developed, forcing some users to enter a code of activation before the trial period is over. I did a class that writes debugging information on the SD card for users to send it to me, so I can see where the failure occurs. Well, it seems that the card SD is not available when you start, is it true that weel to store memory? If so, is there a way around it?
Our application written in memory of camera store and enabled auto-start. First thing that is written to the log file is not at the beginning of the start feature, the still saw issues with our log file. At least, it seems that the storage is on front of network connection. If you still have the problem of storage, you could extend peterof idea and write to the file using some proxy in the buffer until the storage is available.
Maybe you are looking for
-
What keyboard for Satellite C650 - 15G
HelloPlease tell me what model of search for Toshiba Satellite keyboard * number of model-room C650 - 15 G *: * PSC10E-00M004G5 * serial number: * 5A484213Q *.* Thanks in advance *.
-
Greetings, I have a Pavilion computer laptop product model VF836AV dv8t-1100 that gives me a failed hard drive IDS of RLL46J-53H6RP-XD002J-60SE03. Does anyone can interpret this code for me. I guess that the drive has failed and needs to be replaced,
-
HP 14-ac108na 14 inch laptop: RAM upgrade for my 14 inch laptop HP 14-ac108na
Y at - it an upgrade of my 2 GB RAM to 4 or 8?
-
There is a blue circle with a yellow capital F inside on my taskbar. How can I remove it permanently
-
WRT160N question. I'm about to blow my brain.
OK, so let me give the backstory. We use this router for a small business. We went to one of our branches. I will refer to this location as the location #9. Anyway, we went to #9 with intentions of the installation of a Sonicwall, which is a router/f