ListView will not display datamodel set of c ++

I have a listview that retrieves a file from a web service json and it analyzes in a datamodel (tried GroupDataModel and QListDataModel). Thanks to some discussions that I found here, I managed to get the data in the data model and attach properly to the listview. which I checked through debugging.

However; When I return to QML, I'm not able to get the data to display.

My loots listview like that at the moment, but it's really just a lighter version of what I want, since I'm trying to make it work:

ListView {
                            objectName: "list"
                            listItemComponents: [
                                ListItemComponent {
                                    type: "item"
                                    Container {
                                        id: root
                                        WebImageView {
                                            url: ListItemData.image
                                        }
                                        Label {
                                            text: ListItemData.title
                                        }
                                    }
                                }
                            ]
                        }

Regarding my code, c ++, I use the Twitter example found here as my base:

http://supportforums.BlackBerry.com/T5/Cascades-development/method-for-making-an-HTTP-style-request-...

For reference, if I try to use QListDataModel, my cards will eventually look like this:

 QMap(("Description", QVariant(QString, "Description here") ) ( "image" ,  QVariant(QString, "https://image.com/image.jpg") ) ( "title" ,  QVariant(QString, "title") ) )

As I said, I see the datamodel get associated with my list by list-> setDataModel (model); but it does not display anything. I'm sure it's something on the side QML that I'm hurting, but hopefully someone here can help.

So, I realized my problem while working on another part of the application.

Unlike the example of Twitter I've provided, I wasn't using a global variable for * root. I believe that when I started with this example, that part was giving me problems, so I used local variables. For this reason, my application created the root object in the initialization and the method of "GetTimeline".

Once I did fixed it is global, the list filled.

Thanks for your help on this everyone.

Tags: BlackBerry Developers

Similar Questions

  • Why the Home Menu will not display when setting up my new BDP S5100?

    I'm trying to get a new BDP-S5100 connected to my tv (a 4-year-old Panasonic plasma HDTV).  The TV can read it is connected to a Sony Blu - Ray device, but will Dim while the player says 'Home'  Pressing 'Home' on the remote control DVD displays nothing.  The remote control seems to work very well for turning on and off and will load and play a disc but no image on the screen.

    The cable seems fine.  After several versions of "turn it on again", including disconnect them the HDMI cable and power sources in orders different, still no go.  We just reconnected the older Blu - Ray player and it works fine.

    Any ideas?

    Hi rxl001!

    Please, try the troubleshooting steps I provided above.

    Furthermore, what is the model number of the Blu - ray player.  Click on this link for additional information on how to find the model number.

  • Windows 7 sees my second monitor as "generic non - PnP" and will not let me set the correct resolution

    Hello

    I just installed Windows 7 Professional 64 bit on a new hard drive on my Dell Studio 540. The PC has a graphics card ATI Radeon HD 3450 and has a Samsung 226bw 22 "monitor on the digital output. This works very well, and has the resolution of 1650 x 4050. When I am running Vista (on the previous hard drive), I got a monitor flat 14 "old on the other out, and it worked fine (although at a lower resolution).

    I added a monitor AOC F22s + on the other output, expecting to be able to put this to the recommended 1920 x 1080 resolution. Unfortunately, Windows has developed the driver for this monitor "Generic non - PnP" and will not let me set the correct resolution. To the maximum it will allow is 1600 x 1200, (as well as all other resolutions it allows) do not use the monitor at maximum capacity, which is the ratio of evil anyway, so the display seems tense.

    I run Windows Update, so have the latest drivers. I tried to install the other drivers, but nothing helped.

    I tried to unplug the Samsung monitor and restart the PC, so that the AOC, one was the only monitor it and he always had as 'Generic non - PnP' with the wrong resolution.

    Someone at - it ideas? I'm at my wits end. AOC support did not understand and could only suggest that the monitor was faulty, but the place where I bought it insist that it works very well and so no Exchange or get a refund (no restocking fee, which is a RIP-OFF).

    I really want to use both screens and would appreciate greatly any help that anyone can give. I hope I gave enough information. If I didn't, please let me know.

    Thanks in advance,

    Alan

    PROBLEM SOLVED!

    It turned out that my VGA cable was wrong and that it was not send the right signal to the computer. The screen worked fine with a VGA monitor, but the PC has not said that the new monitor is a PnP I tried a different cable and it worked fine.

    Thanks again to all who have suggested things.

  • "Non-rectangular objects will not display correctly when you export with the help of CSS."

    I use Ind CC 2014 export a document to an epub recomposable.  The document contains a picture .ai.  The image export correctly in some parts of the the.epub, but not others, when it is deformed. There is a warning on export: "Non-rectangular objects will not display correctly when you export using CSS."  Any suggestion is appreciated.

    Hello

    For these objects, the best option is to 'rasterize container"to preserve appearance of the page layout setting in the Options of the Export Object dialog box and then export to EPUB recomposable.

    Kind regards

    POOJA

  • My Muse site will not display the customized html images that work in chrome?

    My Muse site will not display the customized html images that work in chrome? Here's my url www.simplesites.com.au.

    Works fine here on Linux.

    Note that the uploads has 'ads' in name and come from simplesites.net.au, so be sure that content blockers not get triggered.

  • Firefox will not display on the screen even though with Process Explorer, I see active Firefox.exe but no CPU usage

    I use Firefox as default browser v10.0.2 on Dell XPS8300 Intel Core i5 and Windows 7 Ultimate and Compaq Presario CQ57 IO IO Intel Core i3 and Windows 7 Home. More frequently on the (approximately 90% of attempts) that Dell (50% of attempts) Firefox will not display on the screen when I click the icon. Cannot display other programs when it happens. I expressly say display because I believe that Firefox has started. To work around the problem, I installed Process Explorer on both machines and launch this program first, then click on the Firefox icon. When the problem occurs I see process Firefox.exe in the list of processes; some CPU consumed but, then, no CPU activity. If I click on the Firefox icon, yet another process opens in the list of processes, but with the same answer - some consumed CPU and then no CPU activity. If I have 2 processes running and kill the process from the 1st, the 2nd poster and then everything is normal. If I do not open it treat a 2nd, but kill the 1st process then click the Firefox Firefox is displayed and all then is normal. This problem has occurred since the original on the two new machines installation. I have updated the video drivers on both computers.

    OK, let's see if we can solve this problem and make it work for you!

    First of all, if you start Firefox in safe mode (restart your computer first, then when you open Firefox, hold down the SHIFT key) it starts more reliable? This is usually caused by a defective module. If this does not help, then restart Firefox, go to the Firefox, then add-ons button and disable your extensions one by one until you find the troublemaker.

    Also, try to update to Firefox 11, it has several bug fixes that might make life easier here.

    Just as a few troubleshooting steps base to ensure that we have all the bases covered,
    Run all Windows updates, install all required service packs, etc.

    Update all of your plugins (Flash, Java, etc.): http://www.mozilla.org/plugincheck/.

    Download and install MalwareBytes Anti-Malware, run a full scan. http://www.malwarebytes.org/. This check allows that there is no virus on your computer, causing problems. You can uninstall this program after having cleaned the infections.

  • Satellite Pro L450D - 12 X will not DISPLAY

    Battery is charged and good. The power adapter is good.

    The machine will not DISPLAY. The screen remains black and no beep. The power, & battery LEDS are green. The cooling fan is heard for a short time after you press the power button.

    I removed the RAM & HDD but the machine will show still not any sign of life (expect short noise from the CPU fan)

    I tried the no battery, no power, hold the power button for 30 seconds without success tour.

    I guess that the motherboard is dead. Has anyone else had the same symptoms? or can anyone suggest a repair?

    > I guess that the motherboard is dead. Has anyone else had the same symptoms? or can anyone suggest a repair?

    Indeed, it looks like a serious hardware problem possibly motherboard or maybe the CPU what to say to solve this problem, you must replace the parts and it will be a costly affair if the guarantee is not valid.

  • I had a paper get stuck in my printer 1310 series. I disabled the jam but it is still showing as a paper jam and will not display 6 documents in the queue

    I had a paper get stuck in my printer 1310 series. I disabled the jam but it is still showing as a paper jam and will not display 6 documents in the queue

    If it still shows paper jam and you know that there is no paper, just turn it works, and it should realize that there is no paper.

  • Sidebar calendar gadget will not display the months or days - my Recycle Bin icon is not on my desk

    Original title: Calendar Sidebar Gadget / recycle Logo

    I added calendar Sidebar Gadget - it worked very well for years and suddenly the firm timetable.  It will not display the months or days and I can not open the pages.  That's happened?

    Recycle the icon was on the desk, but disappeared and has left a space on the desktop.  How to get back in place on the desktop?
    I hope someone can help.  Thank you.   Jeanne

    Hi Jeanne,

    Take a look at the answer provided in nets below the link to solve your problem in calendar view:
    My Microsoft calendar gadget is displays a blank page, rather than the current date / month calendar

    Then try to use the Microsoft Fix It provided in the link below to get the trash on the desktop:
    How can I make the Recycle Bin on my desktop in Windows Vista or Windows XP?

    Hope that helps.

  • will not display list of program when I hit start menu

    When I hit the computer button all programs will not display any installed programs, weird!

    http://WindowsXP.MVPs.org/allprograms.htm
    When you click the menu programs on the Start Menu, it can show (empty)
    Nothing happens when you click on all programs on the Start Menu
    Not all the shortcuts are displayed

  • HP dv6700 monitor will not display.

    I see other posts about this problem in 2011 without solution. Dv6700 monitor will not display or display a go to sleep avter a few moments.

    Hi @WoodyJr9,

    Welcome to the Forums of HP Support!

    I understand that you are having problems with your screen either vacuum or go to sleep after a few seconds.  I'm happy to help you with this.

    Please see the following, because it can be the starting point with the problem you mention.
    Solve problems with sleep and the night before extended Modes (Windows Vista)

    If this does not help, then take a look at these:

    The display is Dim during or after the boot or startup

    Troubleshooting of black screens with no start-up or start-up error message
    Diagnose a display LCD (LCD) for damage

    Another thing you can try is updating drivers, if you don't have already done.

    HP Pavilion dv6700 CTO Entertainment Notebook PC Drivers

    Please let me know if this was helpful.

  • My lexmark X 7550 printer will not display when uac is enabled.

    Original title: user account problems

    My lexmark printer will not display when uac is enabled. I have a lexmark X 7550. Someone has any ideas

    Hello

    1. what happens when you try to print the User Account Control (UAC) is enabled? You get the error message? After return the correct error message if applicable.
    2. you are connected to a user administrator account?
    3. don't you make changes on the computer before this problem?

    I suggest you install the latest printer driver and check.
    http://support.Lexmark.com/index?locale=en&ProductCode=LEXMARK_X7550&UserLocale=en_US&segment=download&OS=WINDOWS_VISTA&page=downloadsList&oslocale=en_US

  • Vista will not display description of the file on mouse over. File name, Type, size, and Date modified see the upward, but no description.

    Vista will not display description of the file on mouse over. When I mouse over, a pop-up window displays showing: file name, Type, size and Date of change, however, it does not show the description of the file.

    So, for example if I have 5 files on different types of screw - the description tells me that the size of the screws. IE. 1.5 mm or 1. 8 mm.

    Update: try to get the description of the file displayed messing around in the file properties, now out of 10 records, only 2 includes the name of the file in the mice on the pop-up window. So now what lack us, it's the file name and the Description file.
    Help, please...

    Description of the file in as long as this is not one of the available variables, which can be shown with ToolTips - but there are others who could easily serve the same purpose. Here are the options:

    Consulted
    Attributes
    Created
    DocAuthor
    DocComments
    DocSubject
    DocTitle
    Modified
    Name
    Size
    Type
    To write

    Here is an article on how to change what is shown. http://www.ghacks.net/2008/02/10/customize-windows-explorer-tooltips/ . It is to change the registry, make sure you so first back it up before doing anything so that you can recover in case you make a mistake (or do the right thing, but it does not work as expected). http://www.instant-registry-fixes.org/how-to-backup-windows-vista-registry/ .

    I hope this helps.

    Good luck! Lorien - MCSA/MCSE/network + / A +.

  • Windows 7 taskbar will not stay on top or will not display

    Windows 7 Pro 64-bit, Dell d830, core2duo t7300, 4 GB RAM

    Windows taskbar settings currently exist:
    Lock taskbar - disabled
    Auto-Hide - verified
    Use small icons - verified
    Location of the taskbar - low
    The taskbar buttons - combine when full
    AeroPeek - verified
    Taskbar won't stay on top of all other windows. In other words, after it autohides, it will not display. I can't say that because I'm not... So it will not display or is display but under other windows. I guess it is less, because when I reduce all windows, it reveals very well by putting the mouse at the bottom of the screen.
    Unchecking / checking options above several times does not change the behavior
    I noticed in contrast to all other versions of windows, stay of the taskbar at the top of the page option has been removed from Windows 7. way to go Microsoft.

    Delete content in C:\Windows\Prefetch. Taskbar "reveals" again.

  • I recently used a dvd + rw disk to back up my photos. Now when I put a dvd in my pc, why it will not display on the screen that's all there is, or how to give me access to it?

    I recently used a dvd + rw disk to back up my photos. Now when I put a dvd in my pc, why it will not display on the screen that's all there is, or how to give me access to it?

    Depends on what you used for the backup.

    If you used the windows backup or another backup software will contain the entire disk will be a backup file, and view/use this file, you use the same software that allows you to save.

Maybe you are looking for