List of the QUrl to QML

Hi all

I want to spend a datamodel that contains paths (QUrl) of the external images to be loaded in a listview (in a standardListItem). How can I do? I tried a Groupdatamodel of a Qvariantmap, but instead to display the image, it displays the path (file:///accounts/1000/shared/camera/IMG_00000013.jpg). I don't think that I have an error in the code for retriving Qurl, but here it is:

  QList attachemnts = note.attachments();
            foreach(const NotebookEntryAttachment &_attach, attachemnts)
            {
                if(_attach.mimeType()=="image/jpeg")
                {
                    QVariantMap attachemnt;
                    QString workingDir = QDir::currentPath();
                    attachemnt["uri"]=QUrl("file://" +workingDir+ _attach.dataId().toLocalFile());
                        attach->insert(new QUrl("file://" +workingDir+ _attach.dataId().toLocalFile()));
                }
            }

Thank you!

Welcome on the support forums.
I suggest to use a string instead of QUrl.

Tags: BlackBerry Developers

Similar Questions

  • Unexpected airPlay with AppleTV list after the iOS10

    Hello

    After 10 times my iPhone and iPad iOS update, I started to see some Apple TV which do not belong to me in my mailing list. For example, the 'Apple TV' and 'Living Room' in the picture.

    I checked my router and I'm sure that I only have my own devices inside my WiFi environment. In addition, I don't see these two unexpected in my Mac iTunes devices, as indicated below.

    I also did an experiment to unplug my Apple TV room and kitchen and then they disappear from the mailing list, while the other two unexpected are still there. I tried to contact them, and I was asked for passwords. So now I'm kind of confused why this happens. As I did not detect these two in either on my Mac mailing list or the list of the devices connected to my router, I think it might be some sort of bug introduced by iOS 10, given that I have never seen this before the update. I wonder if someone could please take a look at. thank you!

    Also, here's an update. I tested with another Mac that is updated for Sierra, and I also started seeing these AppleTV unexpected AirPlay list (as shown in the picture), while for my two other Mac on El Capitan, I don't see this problem.

  • audio output lists only the internal speakers when usb is connected to the dac

    This problem happened after I had used my mbp for months as music server in a stereo system.  When I have the mbp connected via USB to an external digital to analog converter (dac), audio preferences had always listed the CAD.  Now it lists only the internal speakers.  I tried to reboot, checked my UBS cable, checked my dac.  The only thing I've done recently is to create a playlist and sync a new iPod to copy the playlist we.  I don't know if that could have anything to create the problem of lack of dac, but I am a relative novice on computers.

    Anyone have this problem or knows how to fix?

    -Try other USB port

    -The signs to see the CASD of life like the lights on?

    -Maybe the CAD failed.

    -Try the following

    -Try to reset memory NVRAM/PRAM and SMC

    MacIntel: Reset of the controller (SMC) system management

    https://support.Apple.com/en-us/HT201295

    Subject of memory NVRAM and PRAM

    https://support.Apple.com/en-us/HT204063

    -Try to start safe mode

    OS x: what is Safe Boot, Safe Mode?

    https://support.Apple.com/en-us/HT201262

    -Start to recovery and repair the startup disk

    OS X: on OS X Recovery - Apple Support

    https://support.Apple.com/en-us/HT201314

    -If it is repairable reinstall the OSX

    How to reinstall OS X on your Mac - Apple Support

    https://support.Apple.com/en-us/HT204904

    -If you do not have a backup using disk utility to restore the internal drive to an external drive, so that you can try to recover the data.

    Format the boot disk and then do a fresh install of Mac OS x

  • How can I change the order of songs in my list "to the top following" of Apple's music with the 10 iOS?

    Thanks for your help guys! :-)

    Hey Aktivoli,

    If I understand correctly, you use the Apple music app and want to change the order of the songs until the next.
    I recommend reading this article, it explains how to change the order in the Apple's music library and playlists.

    Swipe up on reading to display your queue up next, that lists all the songs that you have selected for the current playback.

    Drag the songs with to rearrange the order, or swipe to the left to remove a song you want to ignore.

    Use of music Apple in the music - Apple Support application

    Thank you for using communities of Apple Support. Have a good.

  • create the mailing list option missing from 'File', 'New' drop-down list in the 38.3.0 version

    Hi all

    I'm trying to create a mailing list using the steps described in the online documentation, but the "Mailing List" does not appear in the fly-out drop-down list. What I am doing wrong?

    In addition, what is the best way to import a mailing list I have in Eudora?

    TIA

    straysaver

    Thank you for your response. New list appears, under address book.

  • TB 31.7 W7, how can I change the police in the "all folders" list on the left?

    TB 31.7 on W7
    How can I change the police in the "all folders" list on the left?

    I was also unable to change the position of the icons on the e-mail toolbar in a message window. When I try to drag a box icon from the tool bar customize I get a symbol of the circle with a line through it, rather than the vertical bar I expect.

    Something like that?

    http://forums.mozillazine.org/viewtopic.php?f=30 & t = 2834207

    Note that the name of the folder and the name are case-sensitive. It must be userChrome.css and it must be placed in a folder named chrome.

    Finittary poster regularly wrote something about this recently. It may be possible to find this thread on this forum.

    The inability to drag or move a button usually means that you have opened the pane customization evil.

  • How to print (or export) a list of the books in the iBooks?

    I don't want to print the books themselves, just a list of all the books I own. I would rather print the list directly from iBooks, but it would also work to export the list of numbers or pages and print it from there. I can never remember what I have a lot of books. I even bought the same book twice.

    Hey, Krasna.

    Thank you for using communities Support from Apple. Purchases of information tells me that you are eager to find out how you can keep track of your iBooks. I have lots of iBooks myself, so I certainly understand wanting to keep track of them all - I'd be happy to help you!

    While it is not a way to export a list of all your books in the iBooks app, you can see all your books within the application itself. On a Mac, you have several options for viewing your iBooks, all listed through the top center of the application.

    1. Under the books section, you will see all your books and their covers. A cloud in the upper right corner icon means that you bought the book, but it is not downloaded to your device.

    2. Under the Collections section, you will have the option to search through all the purchases of your iBook as well as of different categories such as books, files, PDF and the current (which shows iBooks you are currently reading).

    3. The authors section allows you to see all your iBooks, sorting by author.

    4. The Categories section lists all your iBooks by category, for example, Action & adventure, Fantasy or Biographies.

    5. Finally, the section of list displays all your iBooks, in alphabetical order, in a list. You also be able to see the title, author, category, collection, read last date, date added, size, and that he has downloaded on your device, or even in the cloud. This is probably the view you'd be more interested in keeping track of what iBooks you already own.

    You can take screenshots of the list of books you have and you can print if you want a printed list of the books you own. You can find out how to take a screenshot here:

    How to take a screenshot on your Mac - Apple Support

    You can get additional information about the use of iBooks in the following article: on iBooks

    Good reading!

  • How to print a list of the movies that I have on an external hard drive

    I have my iTunes on an external hard drive.  I would like to print a list of the movies.  I tried 'print' which causes quicktime and iTunes to open. I tried "select all", "copy", then paste in the text change which causes a spinning endless ball and the eventual system crash.  I guess she's trying to print the actual movies rather than on the list.  Any ideas how to create a list of the contents of a disc and then print this list?  I use OS X on a macbook pro 10.11.5.

    You a run this in Terminal and it will display the names of files in a file on your desktop.

    LS path/to/file > > ~/Desktop/Movies.txt

    Replace the full path to the folder path/to/folder.

  • How can I dispay Favorites list on the left side?

    I'm just migrating to opera, I do not like the new version.

    I'm used to having all my favorites list on the left side and would like to know how to do this in Mozilla.

    Hello
    I hope I get it right...
    Click view > sidebar > bookmarks and you should get a list of your bookmarks.
    By pressing CTRL + B should also do the trick...

    B.R.

  • cannot send to the mailing list - get the msg 'wrong e-mail address.

    I've set up a mailing list for the first time.
    All this seems simple enough, and to test it, I used my e-mail address as the only one on the list.
    However when I try to send to the list, I get the above message.
    any help welcome
    Thank you

    Gallery of events If it is the name of the list try to remove the space in the name or create a new list without the space and see if it works better.

  • How can I remove the "reading list" in the bookmarks menu?

    The new beta 38 has a "reading list" in the bookmarks menu. I don't want it. How can I remove it?

    Type of topic: config in the URL bar and press ENTER.
    accept the warning message

    In the search field at top.

    Browser.readinglist.Enabled

    Below - then double-click that preference Toggle to False.

    Then restart Firefox.

  • Cannot copy the addresses in new list since the update of 31.5

    I'm trying to set up a new list successfully) and fill it with addresses by copying and dragging the addresses in my personal address book. I have done this dozens of times in the past. Now, from 31.5, it seems that the addresses have been copied, but when I opened the new list, it is empty. I have not implemented a new list for the last few months so don't know when this happened. Went through all the settings but can find no one who would control it.

    Help please!

    6rtury

    A new facility would create a new profile, but already, it has a profile in the right position and will, as it does on the updates, use the existing profile. Watch profile.ini %appdata%\roaming\thunderbird

    (If not, everything inside the new profile to delete and copy everything from the inside of the old profile here.)

  • have the icon to download helper with video up, I have until it clicks, dosnt download or convert a number appears next to the icon and its listed in the queue draft.exe

    I was able to load videos 26 then he stopped down. I checked the preferences, the version is 4.9.24, I can see that the video is listed next to the icon, when I drag the mouse over it.

    I support download icon, when the video is running. I click next to the icon and choose the game I want, on fast download I see it loads, but no dwhelper. dosnt download or convert a number appears next to the icon and its listed in the queue draft.exe

    There is a problem with DownloadHelper Firefox 36. They are working on a new version, you can download and help test this discussion page:

    https://groups.Google.com/Forum/#! Forum/video-video downloadhelper-5

  • Browser, not loading of Web pages. Have tried everything listed in the resolution of the problem, no change

    For these last days were able to load anything within the Firefox browser. No error messages, simply login on the tab page capable of loading on other browsers, but I greatly prefer Firefox.

    Have tried to restart the browser, restart the computer, deactivated the plugins, started the browser in safe mode, uninstalled and reinstalled, reset Firefox, installed any windows updates complete required computer, do analyses, the antivirus scans.

    It is possible that your security (firewall, antivirus) software blocks or limit Firefox or the process of plugin-container without you inform, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox and the plugin-container in the permissions list in the firewall and allow your firewall to ask permission to get access full and unrestricted, again to install for Firefox and the plugin-container and the update process.

    See:

    You can check if you can start Firefox in Safe Mode by holding down the shift/Options key.

  • CSS beta to eliminate duplicates and spaces in the headers of the list of the CSA

    I use the /content to my list of discussion topics CSA box/Header for my messages contains excessive redundancy and white space. Turningtest2 has all the link on this page with /content

    Communities and categories site map

    Reduction in the header of the web pages list CSA.

    http://pastebin.com/raw/ecgF6kwg

    You don't need to make any changes when it is used with the combined css user style sheet.

    https://discussions.Apple.com/docs/doc-7501

    If you use you will be required to change one number. Find line 70 and change.

    top:-120px! important;   / * = If you want to run this with on the main css, change of-120 to-80px = * /.

    example: https://discussions.apple.com/content?filterID=following ~ objecttype 5% Bthread % 5 d

    Here's what my /content list resembles a safari unmodified. We see that a discussion on the first page.  Yet, see a list of discussions is the goal of this web page.  Should focus on the satisfaction of the purpose of the page, instead of filling with a grab bag of things.

    With css changes, notice how I can see six discussions I participate instead of one. Notice, how the sidebar has been replaced by a horizontal navigation bar and I always get discussions more listed on the web page in stock.  I got rid of the icon display block without value. Everything is always present, in much less space.  I would like to make a few adjustments more to better align objects and adjust the size of the elements, but there is only what I can do with css.

    < image edited by host >

    Okie dokie...

    • I'm using Firefox 47.0.1
    • I prefer Zoom ' more a TWO' = CMD + 0 THEN CMD + 1 TWICE = text size is good, and the margins are tolerable

    See at the bottom of my list of forum "home port" (my page 20 minutes reloadEvery)

    • When I visit content like you page show
    • I simply hit 'Page Down' button only once and POOF goes the white space

    ::

    heckuvalot more easy for ME that the implementation of a CSS

    ::

Maybe you are looking for