QML how do I change the format of the element within a listitem

Hello

I can't change a button inside a listitem. I'm trying to do disappear when onTriggered is raised. I don't know how to access however.

This is the code

[code]

{To ListView
ID: list
dataModel: listDM
                    
listItemComponents:]
{ListItemComponent}
type: 'point '.
                         
{Of container
                             
                         
{StandardListItem}
Title: ListItemData.name
}
                             
Button {}
ID: testBut
text: 'button '.
}
}
}
]
                    
onTriggered: {}

//
ListItem.testBut.visible = false
}
}

[/ code]

Thank you for your help

you change the data in the datamodel.

Like this

BIND THE VISIBILITY BUTTON

ListView
{
    id: list
    dataModel: listDM

    listItemComponents:
    [
        ListItemComponent
        {
            type: "item"

            Container
            {
                StandardListItem
                {
                    title: ListItemData.name
                }

                Button
                {
                    id: testBut
                    text: "button"
                    visible: ListItemData.buttonVisibility

                    onClicked:
                    {
                        var item = ListItemData;

                        item.buttonVisibility =false;

                        Qt.listDM.replace(root.ListItem.indexPath, item);
                    }
                }
            }
        }
    ]

    onCreationComplete:
    {
        Qt.listDM = listDM;
    }
}

Tags: BlackBerry Developers

Similar Questions

  • How can I change the elements of an Enum to execution?

    I have an enum that is full of items. I would like to change the labels on these elements using the runtime. When I try using the property node '[] strings' I get the following error:

    "Error 1073 in property node (arg 1).

    Possible reasons:

    LabVIEW: This property is writable only when the VI is in edit mode, or this method is available only when the VI is in edit mode.

    "Property name: [] channels."


  • Response of local folders looks like the answer to the discussion group. No signature or formatting options. How can I change the local folders meets regularly?

    Please see image attached. Responses from the eyes of local folders as responses to the discussion groups. No signature or formatting options. How can I change the local folders meets regularly, as they are in the Inbox?

    I don't think that the format of replies to the messages in the local folders are linked with focus groups or to individual account settings. As local folders can contain messages between several accounts or identities, it is more likely that formatting uses the setting of the account or identity appearing in the: field when you reply.

    This is how I think it should work. How this works in practice may be different.

  • How can I change the data format of the digital display of the digital meter?

    I created a screen that uses digital counters to display data.  Each meter has its visible digital display so that the user can see the level accurately.  I have changed the format of the data from the meter to 2 digits of precision and want to display to have the same format, but there seems to be no way to do it.  The digital display is locked to 6 significant figures, which will be confusing for my users.  I know that this was possible in previous versions of LabVIEW, but was somehow lost to 8.6.1 and 2009.

    I am aware that I could do some "work-arounds" with channels or replacing the digital screens with digital indicators, but it is not acceptable.  How can I change the properties of digital signage?

    Hi AEI_JR,

    on the Properties dialog box, when you set the display format of the counter, you will find a switch to choose between 'Digital' (the default) and "digital display"...

  • How can I change the format of a film shot in Microsoft Movie Maker?

    Help! Windows Movie Maker: convert a file

    How can I change the format of a movie in movie maker from microsoft so that it can be universally accessed? or uploaded to youtube?

    I suspect you want to view/download the. Project MSWMM file
    which is only useful for re - edit in Movie Maker.

    Try to save your Movie Maker project in the. Film WMV format.
    With your project open in Movie Maker are... try the following steps...

    To save in a .wmv movie file...
    Type of... CTRL + P (or go to...) File / save movie file)
    to open the wizard movie recording.
    Choose... My computer.
    Next /.
    Enter a name and a location.
    Next /.
    ICT... "Best quality for my computer.
    Next /.
    Wait while the movie is saved.
    Finishing...

    The next YouTube document offers guidelines for downloading video:

    Quote: "not bigger than 2 GB and no more than 15 minutes in length"

    YouTube Help Center: for starters: how to download
    http://www.Google.com/support/YouTube/bin/answer.py?hl=en&answer=57924

  • How can I change the format of my photos to upload on a social media program?

    I want to download my photos on a dating site. How can I change the format of my pictures to do?

    Hi Rose,

     
    1. in which file format you are trying to change the image?
    2. what file format you are trying to change?

    I suggest you to see link and check if it helps.
     
     
     
    I hope this helps.
  • How can I change the file format "" an image of email to move it to the photo library? We will seek answers

    How can I change the "format" of an e-mail image to move in my photo gallery? I need to make changes before that I can print.

    Hello

    1. What is the format of the picture taken from the e-mail?

    2. in what format you want to convert the image?

    Follow the steps from the link below and check if that helps.

    Convert music, videos and photos from one format to another

    http://Windows.Microsoft.com/en-us/Windows-Vista/convert-music-videos-and-pictures-from-one-format-to-another

    It will be useful.

  • How can I change the settings to use wds Explorer format NO libraries - man of my file were not placed there by vista

    I have over 300 photos, 150 + documents, large files of Family TreeMaker large and reports for five separate families. Of course, there are some thecomputer file uses. And a number of files of daily use.
    LIBRARIES do not contain all these files - the only way I get to the file are not not in the library is to use Windows Explorer, and who does not always show the genealogy reports.
    Only about a quarter of my photos were listed in the picture library.
    The Stands of Question - how can I change the settings to get rid of the LIBRARY format and return to a format similar to or is Winows Explorer?
    AND the second Question, use the list of records, no libraries, wen I move to Windows 7 and Family Tree Maker 2012 once the computer is repaired?

    Hello

    1. Please let us know which Antivirus are you using?

    You can disable the libraries in Windows 7. Please visit the following link:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/turning-off-libraries-in-Windows-7/18d001dc-5319-440b-B29C-d348f81c929c

    It is not possible to delete libraries. Libraries are part of both Windows Vista and Windows 7 operating system.  You can still navigate through your files on the computer--> C :\-> users-> .

    Please visit the following link:

    http://TechNet.Microsoft.com/en-us/library/ee449413 (WS.10) .aspx

  • When I press the SHIFT key to get to register this happened @: M and when I press on enter key this happens #__nb so how can I change the setting I tried to format it but it's always the Sammy _ same__Regards

    When I press the SHIFT key to get to register this happened @: M and when I press on enter key this comes up #.
    NB so how can I change the setting, I tried formatting but it's always the same
    Cordially Sammy

    Try another keyboard, if that solves your problem is faulty and should be replaced.

    "sammy06forever" wrote in the new message: * e-mail address is removed from the privacy... *

    When I press the SHIFT key to get to register this happened @: M and when I press on enter key this comes up #.
    NB so how can I change the setting, I tried formatting but it's always the same
    Cordially Sammy

  • How can I change the font color? I have no option "color" under "format".

    How can I change the font color? I have no option "color" under "format".

    Hello

    There are several ways to do this-

    1. for font color, you can use the CSS section in the Inspector (Windows-> property) properties.

    2. you can set the style inline in Code view (for example it is paragraph

    3. you can use CSSD to add a switch and set color property in the section of text.

    Thank you!

    Kusha

  • How can I change the download folder. Firefox tells me of free memory, but there is actually enough space.

    How can I change the download folder. Firefox tells me of free memory, but there is actually enough space.

    IM using a Samsung Galaxy S. The problem was the internal sd card, which has been used by some data that belong to an application already deleted. That's why the smartphone was told there is still some free space. I formatted my sd card. Now, everything works fine.

  • Re: Satellite A50 - how can I change the boot with BIOS password priority?

    I have a Satellite A50. I need to restore to factory default to recover DVD, how do I boot from the DVD?

    The default boot priority is the HARD drive and is more bootable has been formatted. My BIOS is password protected, how can I change the boot priority? After having inserted the password, its always boot from the HARD drive.

    Thank you

    The boot priority, that you can change in the BIOS.
    Go into the BIOS with ESC, enter your password and then you can change it.
    But don t forget to save the changes.

    That s all and then you can boot from the CD.

  • How can I change the time on my computer from 24 hour to 12 hour clock clock?

    How can I change the time on my computer from 24 hour to 12 hour clock clock?

    How can I change the time on my computer from 24 hour to 12 hour clock clock?

    Here is the method for Windows 7. If you are using Vista, there may be a slight difference, but basic procedures should be similar...

    Start > Control Panel > region and language > Format > more settings > time tab >

    under time format, set hh: mm hh: mm

    H = 24 hours

    h = 12 hours

    Click OK when finished.

  • Bought laptop computer using XP, how do I change the name of the user account of the former owner to mine?

    I recently bought a laptop from a colleague with win xp
    installed. I have mangaged to customize all the settings and
    change the user account of his name in the mine. However,.
    in the folder "Documents & Settings', the user of the account
    personal forlder remains in its name whereas it should
    automatically turned into me when I changed the
    account in my name. So that all my staff
    the parameters in the folder as "My fovorites" are those
    me, the name of the folder is always under his name.

    How can I change the name of the account for the personal folder
    his name in the mine? I tried right click and
    selecting rename, but a bax warning appears, and I'm not
    not know if this is the right way to do it. Thank you

    How can I change the name of the account for the personal folder
    his name in the mine?

    If you have the reinstallation CD, format and reinstall XP. It's really the way to go with a used machine.

  • How can I change the duration of an MP3 file I downloaded? For example, I have a song that 1.5 last minute, but I want to only keep the 21 seconds. How can I culture there?

    How can I change the duration of an MP3 file I downloaded? For example, I have a song that 1.5 last minute, but I want to only keep the 21 seconds. How can I culture there?

    Your best bet would be looking for writers to mp3/wave. There are a few very good freeware/shareware sound there. I suggest this so that you can choose what format you want to save your file cropped as.

Maybe you are looking for