Data model with ImageView not displaying the image on OS10.1

in the qml, I have a ListView with a DataModel.  The DataModel contains a label and ImageView.

I put the ImageView and etiquette like this

Entry QVariantMap;

QFile file (picture_file);  file stored on the device
QFileInfo fileInfo (file);
QString qmlPath (fileInfo.absoluteFilePath ());

the path of the file would like something like that

/Accounts/1000/APPDATA/com.example.TestApp.testDev_e_TestApp4a417186/shared/photos/TestApp/MyPicture.PNG

entry ['image'] = QUrl (qmlPath);
entry ["name"] = "Text";

It works on 10.0.9 but when I recompile the target app to 10.1 or the image is not displayed.  The label is.

Also, if I set the imagesource to the current folder the image appears fine.

entry ['image'] = "asset:///images/template.png";

What is the correct way to set the imageSource for ImageView?

I think your problem will be solved by file:// adding to the path of your file.

Tags: BlackBerry Developers

Similar Questions

  • Reinstall Photoshop CS5.5 - on opening a file image, the program will not display the image.

    Just reinstall Photoshop CS5.5 of CD on Mac. On the opening of an image file, the program will not display the image. Thumbnails of the image appear in the layers window, but not the main window - ideas?

    Join the Discussion of Photoshop discussion

  • Dreamweaver does not display the images of the root folder

    Dreamweaver does not display the pictures in the folder root in the browser:

    "< a href ="... /... /.. /.. / gen/index.php "> < img src ="... /... /.. ' / gv_logos/gen_logo.png "alt ="Gen"width ="130"height ="60"> < / a >

    "< a href ="... /... /.. /.. / english/mall/home.php "> < img src ="... /... /.. ' / gv_logos/gen_mall_logo.png "alt ="Mall"width ="110"height ="60"> < / a >

    I use Dreamweaver CS6. I checked display > display external file, it is checked. I unchecked it executed the script, still no change.

    I've been in the problem for weeks.

    It's driving me crazy. .

    Thank you all. I finally discovered what the problem was. My ' link to ' was created at the root of the Document.

    For later use, to all those who may have this problem:

    1. Launch Dreamweaver.
    2. Click on "Site" in the top menu.
    3. Select "Manage Sites".
    4. In the 'Manage the Sites' box, select your local site folder. For example, my_new_site
    5. Click on change icon (it's the second icon on the button "Import Site").
    6. The site for my_new_site configuration (for example) is displayed. Now click on "Advanced settings".
    7. Search "link to:" in the options, select 'Site Root '.
    8. Click on 'Save' later, the box disappears.
    9. Click on 'Done'... and you're done!

    You don't need to restart your computer for the settings save constantly. But if that fell safe, Dreamweaver shut down and restart it. All links should display correctly.

    But it is worth mentioning that all of the links in the following format will have to be edited:

    /.../.../main.php

    Just rewrite the link paths not all scripts.

  • Merge data does not display the Images

    It's my first go with data merge well. I have my master put in place and have my csv file mélange successfully in a multi-page data merge document.

    For reference, I use ID CC and Windows 7

    My problem is data, image fusion.

    My csv is configured using the ' @image as a header, and I use a relative link in the sub domain (/image-folder/image.jpg)

    ID recognizes the header image and watch 'image' in the data source, but when I assign to my frame nothing appears. I have the mount on the frame.

    My path seems to be correct, as if I change, my image does not appear in the layers palette.

    I don't see the image when I hit "preview" in the data merge palette, or when I perform the fusion of data itself.

    Really need help!

    It turns out to not be a path problem, it seems that InDesign is incredibly buggy when dealing with the merger of data! Display my images were not purely because of the layout and I don't want to say there was a mistake in there, but move a text frame a few px left or right has resolved... I don't know why, unfortunately, but it was a beautiful day.

  • JTable with custom column model and model table does not display the table header

    Hello

    I create a JTable with a custom table model and a custom column template. However the table header is not displayed (Yes, it's in a get). I have narrowed the problem down in one compilable example:

    Thanks for your help.
    import javax.swing.*;
    import javax.swing.table.*;
    
    public class Test1 extends JFrame
    {
         public static void main(String args[])
         {
              JTable table;
              TableColumnModel colModel=createTestColumnModel();
              TestTableModel tableModel=new TestTableModel();
              Test1 frame=new Test1();
    
              table=new JTable(tableModel, colModel);
              frame.getContentPane().add(new JScrollPane(table));
    
              frame.setSize(200,200);
              frame.setVisible(true);
         }
    
         private static DefaultTableColumnModel createTestColumnModel()
         {
              DefaultTableColumnModel columnModel=new DefaultTableColumnModel();
              columnModel.addColumn(new TableColumn(0));
    
              return columnModel;
         }
    
         static class TestTableModel extends AbstractTableModel
         {
              public int getColumnCount()
              {
                   return 1;
              }
    
              public Class<?> getColumnClass(int columnIndex)
              {
                   return String.class;
              }
    
              public String getColumnName(int column)
              {
                   return "col";
              }
    
              public int getRowCount()
              {
                   return 1;
              }
    
              public Object getValueAt(int row, int col)
              {
                   return "test";
              }
    
              public void setValueAt(Object aValue, int rowIndex, int columnIndex)
              {
              }
         }
    }
    Published by: 802416 on October 14, 2010 04:29
    added
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    See http://download.oracle.com/javase/6/docs/api/javax/swing/table/TableColumn.html#setHeaderValue (java.lang.Object)
    When the TableColumn is created, the default headerValue is null
    So the header ends up rendered empty label (probably of size 0 if the JTable calculates its size of header based on the size of the default rendering tool).

    It worked:

         private static DefaultTableColumnModel createTestColumnModel()
         {
              DefaultTableColumnModel columnModel=new DefaultTableColumnModel();
                    TableColumn col = new TableColumn(0);
                    col.setHeaderValue("Header Title");
              columnModel.addColumn(col);
                    return columnModel;
         }
    

    Published by: jduprez on October 14, 2010 14:09
    Beaten by a fraction of a second!

    Published by: jduprez on October 14, 2010 14:10
    OK, by a split of 17 minutes, specifically: o)

  • Problem with picture files do not display the images correctly

    I'm an online seller. I keep a folder of photos in format to download on my listings. The photos are named. Recently, the names have remained the same, but the image has changed.  If I rename the image, tell the Vintage Photograph photography Vntg, then appears the correct image.

    However, I don't want to go in and rename a few hundred images!  That's happened?  Please note that not all images in the folder are affected.  About 2/3 are.

    I use Windows XP Home Ed.

    go to the respective folder where all your files are stored...

    Step 1 - Press Ctrl + a. his will select all.

    Step 2 - right click on any image file and click on "Rename". "."

    Step 3 - give a name of your choice...

    Your work is done all the photos will be renamed your name with adding a number of iteration...

    Example: your image files are Diamond1.jpg, Gold.jpg Silver.jpg...

    It will be renamed... (Assume on rename, you give AAA.jpg) then...

    AAA (1) .jpg, AAA (2) .jpg, AAA (3) .jpg...

    yep...............

  • Will not display the image

    Hi friends

    I'm creating report html using the TABLE below. but the image is not intended to display.how can do that.


    I have a table with colmns are

    FATHER_DETAIL (NAME OF THE TABLE)

    WHAT VARCHAR2 (50)
    M_NAME VARCHAR2 (50)
    L_NAME VARCHAR2 (50)
    DATE OF BIRTH
    FATHER_IMAGE BLOB
    MIMETYPE VARCHAR2 (255)
    NAME VARCHAR2 (255
    DATE OF IMAGE_LAST_UPDATE



    Thank you
    Nisha

    Hi Nisha,

    You always need to replace to check that the PL/SQL uses the value of: P1_STUDENT_ID:

    **

    Andy

  • Firefox does not display the Images selected from the Google search results!

    I'm a recent new user of Firefox, since my IE8 on XP does not work with certain sites.
    I am now on Firefox 25.
    Firefox has a couple of mixed content settings, and in fact, some changes have gone with 25 who has been registered to be in 24, but was not (I read).

    Anyway, my IE8 and IE9 on Windows 8, I believe, have a warning that appears in a box when I go to a web page with mixed content, so I can decide whether to allow the display of mixed content, and I make the judgment, if I'm on a bank or other secure site, etc.

    This mixed content WARNING CHOICE seems to be missing in Firefox, and I'm surprised!

    In any case, in Firefox 25, mixed the active content is blocked, and when I do a google search on '2014 Nissan Rogue', successes were few images called images.
    When I click on any of these images, a blank page appears, with no way to allow the image to display. Help!

    Looks like 25.0.01 that came out a few days ago has fixed the problem that existed in 25 delivered a few weeks before. Thank you!

  • Does not display the images and CSS does not work generated WebHelp

    Hi all

    I have two issues which I believe are related. It miss me probably a simple step somewhere, since I can't find this issue covered in the forum or help.

    We have just upgraded to RH7 to RH9. When I build a project to test, the CSS was fate not (it was connected properly in the topics of the project, but he was not released when the WebHelp has been generated). Trying to open the CSS file directly led to a 404 error.

    I was able to solve that by checking the "Apply to all" button and selecting the CSS file we use (see image). However, none of our lists - ordered and unordered - are properly formatted. The font and size of numbered lists is incorrect, lists all nested lists display with numbers, even if they are not ordained and autonomous bulleted lists use evenly filled as circles dig balls, where previously they used the small squares, circles, or a picture of triangle. The CSS is called correctly in the subject, lists are formatted to use the styles and the styles are in the style sheet, so I do not know what causes this problem. So far, I have not noticed any other styles does not, but those are the ones that stand out.

    WebHelp Settings (CSS).png

    The other problem is with the images. This problem appears in both our WebHelp generated and in the printed documentation. The images are not output. In WebHelp, the text appears (typically the name of the file). in the printed documentation, nothing appears. (I checked all the printed documents that "embedded" is selected, but as far as I know, there isn't a similar function for the WebHelp).

    What Miss me? Thanks in advance for any help!

    Source code control is involved?

    So you can see the CSS in the project manager and it works very well in the design editor but does not every time that you build for. Can you just build or generate and publish? You use Windows Explorer to check the CSS in both places?

    How do you get a 404 error? This happens when you click on a link where the target does not exist. Normally you would use Windows Explorer to locate the CSS.

    Lists are a known problem on upgrade from 7. See the lists on my site.

    The images show in the project manager?

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Heck that is, in any case!  Does not display the images

    I have a page on one of my sites IE chooses not to display images.  They will be displayed correctly in Firefox, Safari, Google and Opera.  Someone stand up and tell me what is the code BONE-head mistake we have made.  No pride here. I just present it correctly in all browsers.  Links: http://shrhabitat.org/youthbuild.php

    Don Carlos Playa of the

    The problem with pictures of the young leader is that they are CMYK jpg.

    CMYK is a print of the image mode. Web images should be RGB.

    Internet Explorer does not have the CMYK images (and there is no more need of)-However, most of the other browsers seem to.

    The solution is to open photos in Photoshop (or whatever image editor you use) and then convert them to CMYK in RGB

    In Photoshop: Image > Mode > RGB color

  • Firefox does not display the images on most Web sites. I can't see the pictures of the products on Amazon or the thumbnails on my Yahoo home page.

    It is only a problem on my home office and is not a problem with IE. It must be an option, I can change, but I'm not.

    Help, please.

    See:

    • Check the permissions for the domain in the active tab in tools > Page Info > permissions
    • Check that the images are enabled: Tools > Options > content: [X] loading images automatically
    • Check exceptions in tools > Options > content: Load Images > Exceptions
    • Under the tab "tools > Page Info > media ' for blocked images (scroll images)

    There are also extensions (Tools > Modules > Extensions) that can block images.

  • Safari does not display the images (looked for fix, tried many things, can't find one that works)

    Hello

    My safari will display all the images, for example Google Logo, image profile of everyone here and much more.

    So I was wondering how I can fix this problem?

    Either way, I have 3 accounts on my computer, works on the other two, but not mine.

    Thank you!!!

    Safari > Preferences > advanced

    Tick the box "Show develop menu in menu bar."

    Menu "develop" will appear in the Safari menu bar.

    Click 'Expand' in the menu bar and make sure that 'Disable the Images' is not enabled.

  • The new version of Adobe Flash Player 11.5.502.110 does not display the images in the flash animation.

    In the new version of Adobe Flash Player 11.5.502.110 the images are not displayed. In previous versions, they are displayed. Tested on multiple computers. It is not a local problem. It is a problem for Adobe. The bad news is that the first versions are very hard to find and reinstall.

    Many tested systems. And all browsers.

    scrinshot has now become.jpgscrinshot previously.jpg

    There is now no big picture.

    Example:

    http://www.deluxedecor.ru/blog/dvorec_san_susi_letnjaja_rezidencija_fridrikha_velikogo_rok oko/2012-11-01-12

    http://www.deluxedecor.ru/index/kollekcija_lepniny_barokko_ehrmitazh/0-45

    http://www.deluxedecor.ru/index/karnizy/0-12

    and many others...

    Beta channel of last week (11.5.502.123) includes a correction which should solve this problem.

    More details here:

    http://forums.Adobe.com/message/4863297#4863297

    You can download the beta here: http://www.adobe.com/go/flashplayerbeta

    If you continue to experience the problem after you install the beta version, please let me know.

  • yahoo email does not display the images on certain messages

    I have a MacBook Air, OS 10.11.3.  In the yahoo email, Safari and only in some emails images will not appear.  It confuses me because some emails are so perfect in others the images does not appear.  All emails from yahoo are received perfectly on the iPhone and my MacBook Pro, but not on the MacBook Air.

    Try to update on 10.11.5 and see if there is a change in behavior.

  • Export the map sprite does not display the images as soon as their published.

    When I preview the files, all right, but then when I "export sheet Sprite" selected and post the file, the subsequent HTML code does not seem to load images by operating via Safari/Chrome etc. If I have her clear, it works correctly.

    Any idea what is the problem? And how can I solve this problem?

    Thank you

    Local HTML code is not supposed to work at all. When you test the movie in Flash Pro temporary server is set up, you can not run the files from the desktop.

    Now, if you do not see anything at all, my guess is that you're just using vectors, and perhaps in Javascript pure local is allowed. When do you be spritesheets, they are bitmaps and be subject to different security rules.

    So, put your files on a server and see if they work from there.

Maybe you are looking for