ListView triggered signal

Hello

I created a ListItemListener & ListItemProvider - class.

Everything works very well to show in a listview.

On a new page, I created a signal connect to triggered(), but this signal seems to be issued.

I followed the instructions from cascadescookbook to create the custom listview.

When I put the DataModel for a new QListDataModel: HistListView-> setDataModel (new QListDataModel(hist-> getHistList())); the triggered signal works

ListView * {IMUI::createHistListView()}
QList histList = hist-> getHistList();
ListView * histListView = new ListView;
HistListFactory * histListManager = new HistListFactory();

QVariantMap histMap = QVariantMap();

for (int i = 0; i)< histlist.size();="" i++)="">
histMap ["title"] = histList.value (i);
mHistModel<>
}

histListView-> setDataModel (& mHistModel);
histListView-> setListItemProvider (histListManager);

Connect (histListView, SIGNAL (triggered (const QVariantList)), this, SLOT (onTriggered (const QVariantList)));

Return histListView;
}

void IMUI:{nTriggered (QVariantList row)
ResultMap = mHistModel.data (row) .toMap () QVariantMap;
navRoot-> pop();
SystemToast * test = new SystemToast();
test-> setBody("");
test-> show();
}

Thank you

Ralph

Hello

Problem solved.

I wrote a small "o" in "onTriggered" method method .cpp one a big "O" of all.

Thank you

Ralph

Tags: BlackBerry Developers

Similar Questions

  • STAXPythonEvaluationError 2.1 VMmark triggered signal

    I'm running my first try on a tile and receive the following error message which seems to be linked to the config file, but I'm unable to locate the root cause.

    I attach the vmmark2.config file to help troubleshoot.

    Here is the output of the error:

    20110726-15: VMmark2.1 from 05:21
    20110726 15:05:27 VMmark2: read the Configuration file: C:\vmmark2\VMMark2.CONFIG
    20110726 15:05:27 by default: VMMARK/IMPORTDIR = c:\vmmark2\xml
    20110726 15:05:29 VMmark2: configuration of the workloads
    20110726 15:05:30 VMmark2: starting installation of the environment
    20110726 15:05:48 info: all the Versions of STAF Client system requirements
    20110726 15:05:48 VMmark2: verification of time synchronization Client
    20110726 15:05:48 STAXPythonEvaluationError triggered signal. Termination of employment.

    = XML information =.

    File: c:\vmmark2\xml\generic_functions.xml, Machine: local
    Line 184: Error in the element type "script".

    = Information about the Python error =.

    com.ibm.staf.service.stax.STAXPythonEvaluationException:
    Traceback (most recent call changed):
    File "pyExec chain <>", line 12, in < module >
    TypeError: int required argument

    = Call stack for STAX Thread 1 =.

    [
    function: main (line: 105, leader: C:\VMmark2\xml\vmmark2_main.xml Machine: local://local)
    sequence: 19/30 (line: 127, leader: C:\VMmark2\xml\vmmark2_main.xml Machine: local://local)
    unit test: VMmark Setup (line: 333, leader: C:\VMmark2\xml\vmmark2_main.xml Machine: local://local)
    sequence: 9/14 (line: 334, leader: C:\VMmark2\xml\vmmark2_main.xml Machine: local://local)
    function: CheckTimeSync (line: 138, leader: c:\vmmark2\xml\generic_functions.xml Machine: local)
    sequence: 3/6 (line: 146, File: c:\vmmark2\xml\generic_functions.xml Machine: local)
    iterate: 1/1 0 tilelist (line: 158, File: c:\vmmark2\xml\generic_functions.xml Machine: local)
    sequence: 4/4 (line: 159, File: c:\vmmark2\xml\generic_functions.xml Machine: local)
    If: RC! = 0 (line: 180, leader: c:\vmmark2\xml\generic_functions.xml Machine: local)
    sequence: 1/2 (line: 183, leader: c:\vmmark2\xml\generic_functions.xml Machine: local)
    ]

    I think that this problem is due to the execution of STAX version 3.5.0.  This version of stax seems to introduce a TypeError when parsing time results.  Please

    follow these steps and let me know if this answers your questions.

    1. download STAX 3.4.5: http://sourceforge.net/projects/staf/files/stax/V3.4.5/

    2. stop the STAF and STAX on preferred customer.

    3. navigate to C:\STAF\services.

    4. move the directory 'stax' to C:\STAX-3.5.0

    5 unzip STAX 3.4.5 and directory "stax" copy in C:\STAF\services.

    6. restart STAF and STAX.

    7 restart VMmark2 run.

    -Joshua

  • How to build and use a clock for triggering signal internal.

    Hi all

    Please excuse my ignorance, but I have been assigned to programming a system/operation of data collection for the experience, I'm trying and have no idea where to start. My goal is to generate a clock signal 0 - 5V with a frequency on the front panel user control and use the signal to trigger events internally. As for the output, I need to control a port analog and digital. The two channels should output a pulse of user specified width to a user specified delay each of each rising edge of the clock signal. The only difference between the two is that I need to specify the output voltage to the analog port.

    If someone could offer some guidance as to the best way to do it, would be great! Thanks in advance!

    HI C-N-O,.

    Will what equipment you use? You have access to a way out of meter? If you do, here's a hat example shows you how to generate a continuous pulse DAQmx screws Train (if you are using National Instruments hardware, otherwise you could check if there is a driver available for your device):

    Community: Generate continuous pulse Train
    https://decibel.NI.com/content/docs/doc-12164

    Alternatively, you can start by looking at the examples of DAQmx, to see some details of the analog and digital control.

    (if you have the driver already installed, you can look for them under LabVIEW--> help-> find examples-> browse-> hardware input and output-> DAQmx)

    Kind regards

    Caroline

  • Encoder triggered Acquisition (Single Channel N samples)

    Hello Internets,

    I am an inexperienced user of LabVIEW, I'm trying to set up a system in which blood samples are taken when triggered by a digital pulse.

    I'm sampling using a PCI-6250. I have an updated encoder in place that emits a digital pulse once per turn. I would possibly take about 1000 samples in a very short time triggered by this time by pulse rev.

    The problem I have right now is that I seem to get a lot less reading I expect otherwise, the LabVIEW program, I'm running also takes a long time to stop following my pressing the stop button.

    The table fills also in a way that is strange to me, perhaps someone could it explain?

    Thanks, any help would be greatly appreciated!

    Hi Relaxidermist,

    There are a few things in your current code that seems contrary to your goal:

    "I would possibly take about 1000 samples in a very short time triggered by this time by pulse rev."

    Assuming that you want to read 1000 samples for each received external trigger and you have several triggers coming, I would start by this example:

    Redeclenchables analog input finished using digital triggering

    I'll be the first to admit that he is not the most intuitive - on the M-series (like your 6250), use a meter to output to an acquisition really triggered.  You could rearm task in the software, but this takes time and is prone to triggering signals are missing.

    If you were on a series of X (63xx devices), the code you have is close, but you must make the following changes:

    (1) use the clock embedded to your example of clock instead of the external signal for PPR source.

    (2) make the task finished instead of continuous.

    (3) enable the redeclenchables property - it is not available on your device of the M series (where workaround posted above).

    Best regards

  • ListView selected item problem in a sheet.

    Hello

    In my main.qml, I have a listview using the standardlistitem.

    I have a popup menu attached to the standardlistitems.

    Now, initially, I had a problem of selection of a list item when I called one of the options in the context menu of the element. The element does not get selected when you make the menu appear.

    To solve this, I use the onTriggered signal from the context menu to call select on the listview. He calls the onSelectionChanged listView itself signal.

    Now here is my problem:

    If I call a function c ++ this signal of the main.qml and in this c function onSelectionChanged ++ I call the funtion selected() on ListView to obtain the row function works correctly and the index is returned.

    But if I have everything first to make a visible sheet and call the function c ++ within the call to selected() worksheet returns nothing.

    There is nothing in my qml or CPP which clears the selection, this occurs by default or something when the worksheet is opened?

    THX.

    * beep * bad forum, I have no idea why I did it!

    IM opening a new post in the forum of cascades and put to resolved.

  • Tap the spread with ListView

    Hello

    I have a ListView with a learn a more clickable label at the bottom right of the list item.  However, when I click on learning more label ListView consumes also to the touch...

    
    ListView {
     listItemComponents: [
    
      ListItemComponent {
    
       Container {
    
          Label: {
            text: "Description"
          }
          Label: {         id: label2
             onTouch: {
                if (event.isUp()) {
                    //Child Label do Something
                    //Point A
                }
             }
          }
       }
      }
     ]
    
     onTriggered: {
         //Point B
         delegate.itemSelected(indexPath);
     }
    }
    

    My problem is although label2 is clicked the touch event is also handled by the ListView method onTriggered.  Does anyone know I can keep the ListView of the manipulation to the touch even when label2 manages to touch?

    Thank you

    Hello

    You can check this code it will help for you. I think that this will solve your problem.

    import bb.cascades 1.0
    
    Page {
        Container {
            ListView {
                id: listview
                dataModel: GroupDataModel {
                    grouping: ItemGrouping.None
                }
                listItemComponents: [
                    ListItemComponent {
                        type: "item"
                        Container {
                            id: cont
                            preferredWidth: 500
                            preferredHeight: 100
                            background: Color.Gray
                            Label {
                                text: ListItemData.title
                            }
                            Label {
                                text: ListItemData.description
                                touchBehaviors: TouchBehavior {
                                    eventReactions: TouchReaction {
                                        eventType: TouchType.Down
                                        phase: PropagationPhase.AtTarget
                                        response: TouchResponse.StartTracking
                                    }
                                }
                                onTouch: {
                                    if (event.propagationPhase == PropagationPhase.AtTarget) {
                                        if (event.isDown()) {
                                            console.log("label at target phase");
                                        }
                                    }
                                }
                            }
                        }
                    }
                ]
                onTriggered: {
                    console.debug("listview triggered");
                }
                onCreationCompleted: {
                    for (var i = 0; i < 5; i ++) listview.dataModel.insert({
                            "description": "description",
                            "title": "listitem"
                        });
                }
            }
        }
    }
    

    If you touch the first label it will trigger the display of the list and if you touch the second label does not trigger the ListView.

  • How to change the layout of the listview in javascript?

    I need show listview two different data schemas.

    can I change the listview.layout of js?

    my code is like this:

    {Page 1

    function aaa (type) {}

    if(type=="List")

    listschema = StackListLayout (); new StackListLayout();

    on the other

    listschema = new GridListLayout();

    listschema.cellAspectRatio = 3 / 4;

    listschema.horizontalCellSpacing = 5;
    listschema.verticalCellSpacing = 5;
    listschema.columnCount = 2;

    }

    {page 2

    property alias listschema lista.layout

    ....

    ListView {...}

    ....

    }

    Thank you...

    Hello

    You can set the layout for the listview dynamically from javascript by doing like this.

    Page {
        Container {
            ListView {
                id: listview
                dataModel: GroupDataModel {
                    grouping: ItemGrouping.None
                }
                /*layout: StackListLayout {
                    orientation: LayoutOrientation.LeftToRight
                }*/
                listItemComponents: [
                    ListItemComponent {
                        type: "item"
                        Container {
                            id: cont
                            preferredWidth: 500
                            preferredHeight: 100
                            background: Color.Gray
                            Label {
                                text: ListItemData.title
                            }
                            Label {
                                text: ListItemData.description
                            }
                        }
                    }
                ]
                onTriggered: {
                    console.debug("listview triggered");
                }
                onCreationCompleted: {
    
                    listview.layout = layout
                }
            }
    
        }
        attachedObjects: [
            /*StackListLayout {
                id:layout
                orientation: LayoutOrientation.LeftToRight
            }*/
            GridListLayout {
                id: layout
                columnCount: 2
            }
        ]
    }
    

    Kind regards

    Naresh Kodumuri.

  • ListView / sheet problem - not selected item after the opening of leaf.

    Hello

    In my main.qml, I have a listview using the standardlistitem.

    I have a popup menu attached to the standardlistitems.

    Now, initially, I had a problem of selection of a list item when I called one of the options in the context menu of the element. The element does not get selected when you make the menu appear.

    To solve this, I use the onTriggered signal from the context menu to call select on the listview. He calls the onSelectionChanged listView itself signal.

    Now here is my problem:

    If I call a function c ++ this signal of the main.qml and in this c function onSelectionChanged ++ I call the funtion selected() on ListView to obtain the row function works correctly and the index is returned.

    But if I have everything first to make a visible sheet and call the function c ++ within the call to selected() worksheet returns nothing.

    There is nothing in my qml or CPP which clears the selection, this occurs by default or something when the worksheet is opened?

    THX.

    This answer worked for you?

    Graham

  • Capture AbstractActionItem SIGNAL to slip into the menu drop-down

    Hello

    So I need to do anything when I press the ActionItem in slide it towards the bottom of the context menu on BB10.

    I created the shot on the menu drop-down

        Menu *menu = Menu::create();
        Image infoIcon = Image(QUrl("asset:///images/info"));
        menu->addAction(ActionItem::create().title("Info").image(infoIcon));
        menu->setObjectName("infoItem");
    

    Looked at the docs. AbstractActionItem

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__abstractactionitem.html the action point emits a triggered() Signal.

    Then ran info a bunch of question that did not help.

    • Looked QTDocs
    • Looked at the signals & Slots section of BB stunts Docs

    in my App.hpp file I added

    public:
       void debugText();
    

    I tried to connect the menu by using the following code:

    connect(menu->objectName(), SIGNAL(triggered()), this, SLOT(debugText()));
    

    It does not work, and I spent 2 hours trying to figure why not.
    How do you connect in fact these things?

    Thank you!

    Hello

    trigger signal is attached to ActionItem itself and not Menu object.

    And don't forget the Q_SLOT macro.

    class xxx : virtual QObject {
      Q_OBJECT
    
    public:
      Q_SLOT void debugText(void);
    };
    
    Menu *menu = Menu::create();
    Image infoIcon = Image(QUrl("asset:///images/info"));
    
    ActionItem *mItem = ActionItem::create().title("Info").image(infoIcon)
    
    menu->addAction(mItem);
    menu->setObjectName("infoItem");
    
    connect(mItem, SIGNAL(triggered()), this, SLOT(debugText()));
    

    Nicklas

  • Problem sending trigger software through backplane PXI (chassis SMU-1082, SMU-6363 DAQ, SMU-6544-HS-DIO)

    Dear community,

    I am trying to implement a background basket (software) PXI trigger on a chassis NI SMU-1082 with LabView 2015 (32-bit) running on an SMU-8135:

    HS-DIO (SMU-6544) in slot 2,

    -Acquisition of data (SMU-6363) into the Groove 4,

    -Flex RIO (SMU-7962R + OR-6583) in the Groove 3.

    The trigger schema is explained in the attached file ' LV-PXItrig-HSDIO-DAQ - overview.jpg ".

    Scenario 1: written DAQ analog signal and sends signals trigger HS-DIO (software) through bottom of basket, after East of waveform of the complete signals to DAQ for acquisition.

    Scenario 2: logical impulse on an external port HS-DIO triggers signals HS-DIO, after HS-DIO waveform is complete DAQ triggered for the acquisition of the ADC by the backplane.

    In principle this breaks down to send a trigger of module A to B by PXI backplane. The SMU-1082 chassis has a bus trip with 8 lines (PXI_trigX, X = 0,..., 7) more a trigger in Star controlled the slot 2.

    I've linked to implement a software trigger, but I can't access the refreshing resource and execution, see the attachment. Other ways of implementation including the DAQmx Terminal / routine disconnect Terminal have not worked for me either. I am aware about the connection of trigger using the node property VISA but I can't make a trigger.

    Tips, comments or solutions are appreciated. Thank you!

    For scenario 1, you want to trigger the HSDIO acquisition to begin as soon as the analog output DAQ starts?  You can use DAQmx Export Signal to send the trigger for the start of one of the lines from the Trig PXI backplane. Then, you need to configure your HSDIO acquisition to use a trigger digital beginning on the same line of trigger. Take a look at the example of the "Dynamic hardware generation start trigger" in the Finder of the example (help > find examples)

    For scenario 2, looks like you do a dynamic unit HSDIO generation when a digital trigger arrives on one of the PFI lines. Once the build is complete, you want to send a trigger for the DAQ hardware to begin sampling. If this is the case, you again use a trigger to start material in your task of NOR-HSDIO, as you did for scenario 1, but use external trig line as the source, rather than the bottom of basket. There is no case of material when the build is finished, but you can use a marker in script mode event instead. The example of the Generation with dynamic event marker' in the example Finder gives a good starting point for this type of operation. You'll want to set the output terminal for the event to be a line of backplane trig, and then tap the DAQmx to start on the same line trig trigger.

  • NI9403 for counting of pulses

    How to use the NI9403 module for counting of pulse device? We test engine GE ECM and provides a signal of 32 pulses per revolution.

    Hi Change_Air,

    In short, you might want to consider another module (probably a 9401 or 9402 according to the type of desired connector and/or the number of lines required).

    Modules with 8 lines or less (e.g. 9401, 9402) use a dedicated line to transfer the data from each of its inputs on the chassis backplane and are therefore capable of routing of external signals such as timing/triggering signals (for example one of the counters on a backplane cDAQ).  However, modules with more than 8 lines must transfer the data serial to chassis backplane and so tickets are not available for routing.

    Assuming you are using a bottom of basket cDAQ newest (any carrier except the x 9172 or 916 cDAQ), from 9.3 DAQmx you can configure a sample clock and acquire a digital input buffered on modules that transfer data in series (I think the 9403 can taste up to 1/7 US = ~ 142 kHz).  So you could end up with a table in the data buffer (for example [0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 1 1...]) which you could then analyze to determine the number of edges.  Of course, the impulses must stay high for at least a period of your sample clock to ensure that you are able to detect.

    If you're on cRIO you could set up something similar, but the same restriction applies always - the limit is the maximum rate that data can be transferred in series of the 9403 inside of basket.

    Thus, although it is probably possible to get what you want with the 9403 (according to your pulse width), a "parallel" module would be much more effective in the detection of the short pulses (if it was a requirement) and would be simpler to program as well - you could just set up a task of edge with a meter count (assuming that the cDAQ).  There's a Developer Zone article containing a list of all series C, but it seems to be incorrect for several modules (perhaps an employee NOR will see this) about the nature of the series/parallel data transfer for the DIO modules.   I am not aware of any exceptions (and do not think that there should be none) to the rule that modules DIO with 8 lines or fewer are 'parallel modules' and DIO modules with more than 8 lines are "serial modules" (there are rows of data exactly 8 connector d - SUB between each module and chassis).

    Best regards

  • sample sound recording fixed length

    Hello

    I am facing a problem that can lead to one of the two decisions.

    In this project, I raise a good analysis of 0, 5 s, and then record if it is a valid sample. But I don't know how can I make a 0.5 s real-time analysis.

    Because of this problem, I tried to record every 0.5 s triggered signals, to conduct an analysis in a saved wav file. But the registered samples I get do not all have the same length

    Help please

    Hugo Guerreiro

    You can use the VI sound aquire

  • Link to the app world for review?

    I would like to add a link to appworld for my request for review. I was wondering how to make my cascade has a button that will open the world app for customer to consider the application?

    You can connect the first block of code to your buttons triggered signal. the second block of code should exist for the armed() SIGNAL invocation.

    I'm sure it can be done in QML too, if you're interested.

    #include

    #include

    Call * m_RateApplicationInvocation;

    m_RateApplicationInvocation = Invocation::create(
                InvokeQuery::create()
                  .invokeTargetId("sys.appworld")
                  .uri("appworld://content/20385905")
                  .invokeActionId("bb.action.OPEN"));
            QObject::connect(m_RateApplicationInvocation, SIGNAL(armed()),
                this, SLOT(openAppReviewPageArmed()));
            QObject::connect(m_RateApplicationInvocation, SIGNAL(finished()),
                    m_RateApplicationInvocation, SLOT(deleteLater()));
    
    void App::openAppReviewPageArmed()
    {
        m_RateApplicationInvocation->trigger("bb.action.OPEN");
    }
    
  • Random Botton

    Hi all, how can I put a button to select an item in the listview to chance and display it in a label

    This is the code where I want to apply
    http://Paste2.org/m92MN1CX

    Thank you

    Button{
      onClicked:{    int size = groupDataModel.size()
        rand = Math.ceil(Math.random()*size) //can also use randInt(0, size);
        listview.triggered(rand);
      }
    }
    
  • Sharing of two Documents QML

    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

Maybe you are looking for