Binding a list with QImage & PixelBuffer data display view Image

Hello

I need to develop a photo gallary as application. I need to load images different lists of grid.

I can paint pictures on a single ImageView using PixelBufferData.

PixelBufferData pixelBuffer = PixelBufferData(PixelBufferData::RGBX, width, height, width, qimage.bits());

    Image image = Image(pixelBuffer);
    imageView->setImage(image);

Now, I need to tie this with a list of grid view. How to get specific ListItem Image view painting.

ListView { id: albumsListView objectName: "albumsListView" layout: GridListLayout { columnCount: 5 }

dataModel: XmlDataModel { source: "models/album.xml" }

 listItemComponents: [ ListItemComponent { type: "album" MyListItem { } } ]
 

MyListItem is a custom component:

Container { id: myItemContainer layout: DockLayout { } Container { layoutProperties: DockLayoutProperties { horizontalAlignment: HorizontalAlignment.Fill verticalAlignment: VerticalAlignment.Fill } layout: DockLayout { } ImageView { id: coverImageView objectName: "coverImageView" imageSource: ListItemData.coverImage preferredWidth: 250 preferredHeight: 250 } Container { background: Color.Black opacity: 0.7 layout: DockLayout { } layoutProperties: DockLayoutProperties { horizontalAlignment: HorizontalAlignment.Fill verticalAlignment: VerticalAlignment.Bottom } Label { text: ListItemData.name layoutProperties: DockLayoutProperties { horizontalAlignment: HorizontalAlignment.Center verticalAlignment: VerticalAlignment.Bottom } textStyle { base: SystemDefaults.TextStyles.BodyText fontWeight: FontWeight.Bold color: Color.White } } } }}
 

I tried to call the method onCreationComplete of imageView & ImageView onImageSourceChanged but did not work.

Well, I managed to find the solution.

I used just custom ListItemManager & ListItemListener update display image in list & it worked fine.

You can see below the links for more information. Documentaion is quite good. Its very easy to understand & implement.

https://developer.BlackBerry.com/Cascades/reference/bb__cascades__listitemmanager.html

https://developer.BlackBerry.com/Cascades/reference/bb__cascades__listitemlistener.html

Sorry to bother you.

Nishant Shah

Tags: BlackBerry Developers

Similar Questions

  • List with lots of data tips

    Hello!

    I have a list control that has started having a lot of data and images as well.

    Now, I think about how optimize this.

    I think maybe make pages instead of vertical scrolling, there now.

    Ideas or expericed with this stuff?

    Thank you!

    Hello

    The best way is to use virtuallayout which means that displayed the renderers are reused, this speeds up the process of scrolling. you could also add "toolbar" pageup/pagedown/beginning/end of navigation.

    Images are retrieved to the data request or as required (i.e. you have a link in the data that calls the images that the element is rendered)?

    David

  • Populate a list with the data previously collected

    I want to populate a drop-down list with the data previously collected in the same form. How can I do this?

    There are a variety of ways. For example, if 'stooges' is a drop-down list and 'stoogeName' is a text field, you can place the JavaScript code depending on the output of "stoogeName," event

    Form1.Page1.Subform1.stoogeName::exit - (JavaScript, client)

    Form1.Page1.Subform1.Stooges.AddItem (this.) RawValue);

    Steve

  • 24 of Firefox with vista to date fails to display icons on the new Yahoo Mail and other web sites — especially icons such as facebook, twitter WHY?

    Web sites like murraystivoli.com that display the facebook and twitter icons and in particular the new Yahoo Mail interface fail to display the icons. I see only a small rectangle. On Yahoo Mail, there are a few inside but instead it should be the display arrows, images of envelopes or as medium icons or 'send '. The new interface is useless without correct icon translation - can not see the arrows for 'reply' 'reply to all '. It works on Internet Explore on Vista; It works on Firefox on Windows XP (it's the way back level) then why do we see this problem with Vista and Firefox update (we 24.0 but saw problems on websites that I don't care that much about other levels of Firefox also.)

    Help, please!

    Same problem here... I have no icons or tick boxes at all in Yahoo mail and it affects a good few other sites too, just small square boxes with numbers inside. It's really annoying!

    Here's what it looks like (you may need to zoom in a bit)...

    http://img.Photobucket.com/albums/v146/Orbiter/11-10-201311-48-39AM_zps381dbba9.PNG

  • Record JPG with the wrong date

    When I save a PSD file, he recorded with the date and the current time today, but when I "save under" a JPG file, it's save my computer first started when I got it with the date and time. What happens to all THE jpg files. Ones I saved yesterday and today have the same date and time. (I started having to set the date and time in my file name!)

    I'm on Windows 10.

    Thanks in advance for any help!

    The screen 'Open' uses Windows Explorer, so it's definitely a Windows problem.

    Try this:

    On the title bar, just above the list of files/folders (Date, Type, size) right click on the empty part of the bar and look at the context menu.

    You should see a list of the types of possible columns, the checkmarks on the possible options. There are more than 15 available date types. Try to create another column with another date than the simple 'Date' type, you now by checking the box. See if other dates are displayed.

  • POS 5.5 could not obtain data with analytical performance data warehouses

    Hi all

    I have two devices POS running version: 5.5.5.180.

    All of a sudden I can not connect to the Web Client for each device.

    POS status show all services in green on the two Pdvs.

    root@vdp:~/#: dpnctl status all
    Identity added: /home/dpn/.ssh/dpnid (/home/dpn/.ssh/dpnid)
    dpnctl: INFO: gsan status: up
    dpnctl: INFO: MCS status: up.
    dpnctl: INFO: Backup scheduler status: up.
    dpnctl: INFO: axionfs status: up.
    dpnctl: INFO: Maintenance windows scheduler status: enabled.
    dpnctl: INFO: Unattended startup status: enabled.
    
    

    By clicking on the Storage tab, displays the error message: "Unable to get data with analytical performance data warehouses" and no data warehouses are listed.

    • VCenter restarts, Pdvs, doesn't change anything.
    • I can connect to Pdvs very well.
    • CP are created.

    I found similar topics but no response... (POS 5.5 ERROR)

    Open a support case and turned out that the POS password user (a user defined in the domain of the @vsphere.local) that was used to access the vCenter has expired. Apparently, there's a bug in vCenter for some versions that makes them expire in 65 days.

  • Fill the list with Instances

    Hi all

    Is it possible to fill the results in a drop-down list with the name of the entity instances.

    for example, I instantiated instances 4 x by the name of the child as part of the entity of children.
    HARRY
    BARRY
    SALLY
    LARRY
    Then on a separate screen, I want a drop-down list to be filled with the name of the child.

    for example
    Maybe, I have a question:
    what is your favourite child (which is a drop down showing 4 instance names (HARRY,BARRY,SALLY,LARRY)
    I'm on v10.1


    See you soon

    Hello

    There is a way to make this out-of-the-box, but all depends on your data model.

    I assume here that you have 2 entities, the person and the child. The child has an attribute called 'name of the child. "

    Creates a one-to-one between the person and the child relationship, that he calls "the child preferred person '...

    Then, create an individual question screen. Add a control to the "relationship of entry" to the screen in question. For the 'legend', write something like "Please choose your favorite child." For the "attribute" display, choose the name of the child.

    This will display the question exactly as you want - it will ask the user to select from a list of all children.
    Of course, if the person can have many favorite children, create a relationship one - several. However, this will display the names of the children as the boxes, because the user is now allowed to select more than one.

    If the relationship is just together, you can then use this relationship to access the name of the favourite on the level of the individual child (using InstanceValueIf), or you can run the rules that apply only to the favorite child.

    It's just a suggestion that Ive just tested in 10.3, I did 10.1 at hand at the moment but don't remember which is new to the brand (others, please correct me if I'm wrong). Give it a go, see if it works and get back to me, if it's not. If this does not work on 10.1 you should certainly consider the upgrade to 10.3 for a host of other reasons too. Otherwise, it is achievable with a custom control.

    See you soon,.
    Ben

    Ben Rogers
    Senior Consultant - Monad Solutions
    http://www.monadsolutions.com

  • ExecuteWithParameter with lie on many display objects

    I thought I knew how to do this, but it has been a month or two and can't seem to get the syntax right. I'd appreciate some advice on this.

    I use jdev 11 to create a basic using ADF Faces page. In the model, I have three separate only reading display objects based on queries in SQL Developer, I created. I have also two tables of choice for use in LOVs to display the names of the identifications. In one of the views, I added two LOVs for columns ID I have a list of choice over which displays the name, id Tech

    All three views have the same variable named liaison -: TechID

    What I want is to have a unique selection box that displays the name of Tech column that returns the ID of TechID. When the user clicks on the ExecuteWithParms, all three points of view must be updated and re-interviewed by the new value to link and display the results. To see this work, I have worked with readonly tables, but hope eventually to use graphics for the three points of view.

    This is the general provision that I am trying to achieve.
    Select a choice (list of Tech worth display name, as well as the return of the ID value)
    ExecuteWithParams button. Currently have table1, table2, table2 in the field of the partialtriggers.

    Table1:
    ViewObject1 which has a link named: TechID

    Table2
    ViewObject2 which has a link named: TechID

    Table 3
    ViewObject3 which has a link named: TechID



    It seems it should be easy to install. Is it possible declarative, or I need code. If I need code, can I get some advice?

    Is there an example that has something similar I can gleen how?


    Thank you, Ken

    I don't think it can be done declarative. You must use a code on the line.
    The problem is that you can only bind a method call to a button. Now you have some ways to go.
    1. use three buttons (easy, but not your use case)
    2. use a clove of support where you put an action listener in the button and call the three methods in the t from here
    3. Add a method in your application module that accept a parameter, then bind it to the button. This method runs the query on each of the your

    I will exclude the first solution. Which of the other two is the best for your use case you have to decide. If you have always updated of the three your I would use the third because it shifts the logic in the model layer and it is easier to maintain.

    In the user interface still link you an executeWithParam to the key, the difference is the method resides in the module of the application. In this method, you call the methods of the your like this:

    public void updateViews(String techId)
    {
      VO1 vo1 = (VO1) this.findViewObject("VO1");
      VO2 vo2 = (VO2) this.findViewObject("VO2");
      VO3 vo3 = (VO3) this.findViewObject("VO3");
    
      vo1.updatewithParam(techID);
      vo2.updatewithParam(techID);
      vo3.updatewithParam(techID);
    }
    

    In each of the VO, you have a method

    public void   updatewithParam(String techID)
    {
      setNamedQueryParameter("techID", techId);
      executeQuery();
    }
    

    That should do it.

    Timo

  • Select the list with a shipment does not save to the database

    OK, I have a form with several fields (text, radiobox, selection list, display text). I have one of these lists of selection fill a display in the text field. When I chose a selection of the selection list, she filled the screen in the text field with the correct information but erased all the other information that was the inscription in the other fields. I searched the forum and found that the selection list should be a selection with mailing list and the branch page on itself, which works, but now these 2 fields information is not saved in the database. All other fields are saved, but not both. Anyone know what im missing? Thank you

    Deanna

    Hi Deanna,
    First the display as a text cannot insert data into the database. It can only display data from database. I guess you do not want the user to enter these areas, and that's why you use display as text field.

    There is a good way to resolve this situation. Say, you have 3 select list P1_ITEM1, P1_ITEM2, P1_ITEM3 in your page. For the change of P1_ITEM1 the screen Select the list and the LOV type in your query, assuming you want the value to be retrieved from a table. Therefore, type-

    Select emp_id, ename from emp;

    type the default value and null -1 and display null YESvalue. Make sure that under the type of source, you have the selected with the correct name database column.
    for P1_ITEM2 to the section LOV retype your query - i.e.

    Select mng_id, executive pay where emp_id = NV('P1_ITEM1') or NV ('P1_ITEM1') = 1

    Basically, this statement updating the data in the list select second after the first selection. type the default value and null -1 and display null YESvalue. Make sure that under the type of source, you have the selected with the correct name database column.

    Do the same for the third. It should work fine.

    I hope this helps.

    Kind regards

    Pascal M
    http://Tajuddin.whitepagesbd.com

  • Express of signal data display background color

    Is it possible to change the background color of the display of data in Signal Express?

    Yes, but you need a signal to 'unlock'  With a signal in the Viewer, right click and select Properties.  Select the scale tab.  At the bottom right, there is a section called grid Style and colors.  BG Color will do what you want.

  • Create a button to erase/reset the data displayed in the graph

    Hello

    I'm new here and to work with labview. I searched the Forum but have not found an answer that would help me (or at least I think I thank)

    I'm working on a project to acquire process an ECG signal with an acquisition of data. In the front panel, I am trying to display 2 graphics, part of the real-time data display and the other showing all the data acquired up to now. I wanted to add a button to this second graph that, when the user wanted, deleted the data shown in the graph, but immediately continued to display the data.

    (trying to make me more clear)

    ' display all the data acquired--> X--> cleans graphic display--> press the button display all acquired data.

    If someone could help, I would be very grateful!

    Thank you very much

    FM

    Hi fred,.

    Open the finder example in LabVIEW and locate the example of 'how clear diagrams & graphics '.

    Pretty easy, don't you think?

  • problem with the backup data in text file

    Hello

    The problem I am facing wihile, saving the data in the text file is that everytime when I'm slecting the path of the façade, data that are recorded are added with the previous data, not only in the new text, the new data set is saved but also, is there any previuos run for the program , the corresponding data is also present in this text file.

    However, when I change the same ''(file path) to 'constant' in the control block diagram, and then add the path of the file, it doesn't have this problem. Basically, changing the "file path" constant in the diagram of control block (so that it is displayed in the front panel) is at the origin of the problem.

    Help, please!

    Thank you

    Your shift on the loop Register For is not initialized. It will keep the value of the string since the last time that he performed. That initialize and it should solve your problem.

  • DLL for LabWindows/CVI 8.0 with the bool data type

    Hello

    I want to use a new SWIR camera in LabWindows/CVI 8.0 (Windows XP 32bits).

    The company delivered with the camera produced a 32-bit dll by using Microsoft Visual C++ 2010. The .dll and .lib and .h files include a working SDK/API (some functions with the bool data type)

    Compilation-online syntax error, variable Boolean is not a data type in LabWindows/CVI 8.0

    Generate the import of DLL-online syntax error library

    I tried to convert bool char (typedef unsigned char bool => no more syntax error but the functions does not work.)

    What can I do?

    Martin

    Hello again, Naumann!

    Microsoft Visual C++ 2010 represents Boolean using 1 byte, as stated by MSDN: https://msdn.microsoft.com/en-us/library/tf4dy80a(v=vs.100).aspx

    I guess that you import C++ functions using the syntax for extern "C". Otherwise, because of the C++ name mangling wouldn't you able to bind C++ library against your code CVI.

    You can also specify how you import C++ functions?

    In addition, because you have not described the problem as a corruption of heads or runtime error, I guess the C++ library function is called correctly the CVI. That said, I tend to believe that the problem is not really in the mechanism of interaction of C/C++, but in the C++ library. If you would start calling a dummy C++ function returning an integer from a simple CVI application that should work, because redefine bool in CVI 1 byte must ensure that settings are correctly transferred onto the stack.

    If you need to create a wrapper function of C++ that is not using bool and calls the C++ function, I expect to return the same result.

    Maybe you are missing a few prior initialization steps required? The provider of the camera also comes all example code?

    Best regards!

    -Johannes

  • file lvm recorded with time stamp graphic display

    Hello

    I have headaches display my data with correct timestamp. There are so many methods to save the data. Here, I decided to save it in a text delimited as lvm. a screenshot of my vi segment is attached. I want to use this way rather than other methods is the flexibility it offers. I'll be able to add more data to store that I develop the vi. (So I'm storing data of the DAQ assistant and my calculated values.) I've attached a screenshot of the file I also read.

    I would use another vi to open this file and it draw a chart/graph to show a trend of the acquired data. Can someone pls Advisor mid on which is a better way for mi to do?

    Thank you very much!

    POH

    Hi Malou,

    Sorry for the late reply, I was rushing to complete my project, has not been able to answer.

    Yes, I managed to solve it. In any case, I've used this high rate in the acquisition of data wizard is to allow the acquisition of continuous mode & use a software filter instead of filter material. However writes to the folder this way - write string in .lvm, max is 10 samples/s unless I have use tdm (I'll then everything in the newspaper).

    I was not able to display the correct timestamp was due to the fact that I have does not add to the timestamp of the start time for the timestamp in waveform display. I won't be able to go down to my lab, & my machine have no LabVIEW, so what I do is to extract some parts of my report to share.

    For the part that I used to display the graph (can be seen on the attachment), I deleted the 1st column, which is the time stamp (for display of the spreadsheet), but extract the 1st element - convert timestamp DBL it when I start recording in the DAQ vi (written with the header).

    This excerpt (which could be considered as a group of numbers in the file lvm) and converted to the type timestamp and wired for generating waveform block, providing the start time of the wave.

    Then I replace the use of the chart with graphic, graphic is suitable for data acquired and graphic tracing is better for the time of execution of the data display. now it seems to work fine for me, except for the load time may take some time for larger files.

    Thank you for your participation in this thread!

    See you soon!

    POH

  • Mode synchronous data display in 2 charts in different screws

    Hi all

    I am a relative beginner to LabVIEW, in what I read some resources, done a few tutorials, and tried to make simple programs to get a feel for the program. My main project is to add extra functionality to a LabVIEW project that is used to stimulate human tissues and save the tensions that result (not for torture ). This point has no other relevance that is not convenient or easy for me to test the changes that I do. This means that I do currently with "proof-of-concept" - type programs and hope that the proven concept will work in the real application.

    Basically, I have to do some graphics to display to a second monitor. I did find something that suggests that the individual graphs can be displayed on another monitor, so I need to create a separate VI with the graphics to display. I already looked at how to display the Panel before a VI on a second monitor, tested and had no problems.

    My problem comes with the passage of the original graphical data on the main VI, on the main monitor to the graphics in the second VI, on the second monitor. It seems I can do this by moving a control to the original graphic reference to the second VI, or passing the table with the data from the original graph as an argument in the second VI. You can see my attempts of these two approaches in the attached files: the passage of the control (RefInput_graph_main.vi, graph_sub.vi) reference and passing the array (ArrayInput_graph_main.vi, ArrayInput_graph_sub.vi). The reason why I use the VI of Signal to simulate, it is that I can not simply do another stimulation experience, so I need to simulate data to see if my approach works.

    The problem I have is that the waveform in the two charts is not the same, and this problem occurs with both approaches. It seems that the waveform in the second graph is slightly offset to the right of the original wave. In other words, there seems to be a delay in time between the two charts. I don't know if it caused delays in the transmission of data (unlikely), or a few kaveat with the Signal VI to simulate.

    My questions are:

    1. What is the cause of the delay? How do I eliminate?

    (Program receives only snapshots of data after each stimulation, so it is not a continuous flow of data. I don't know if the delay will always be present in this case.)

    2. are there other ways to pass data between the graphics? Any other suggestions or guidelines?

    (The program is quite complex, so that it will probably be not possible to encapsulate the original sequence structure graph as in RefInput_graph_main.vi, which makes using a reference control was not feasible.) Yet, I am open to ideas.)

    3. all comments more?

    Thanks for your help! I'd be happy to clarify things, or change this message to make it more clear.

    Nemanja

    If you use a chart (updated for the point-to-point): create a queue and when you write in the main graphic, also write to the queue. Put the items on the second chart and the sons of the reference to the queue in the Subvi.

    If you are using a graph (and showing the entire waveform): as above, but use a notifier. In fact, you could just waiting in line the entire waveform.

    The option using a queue is essentially an architecture of producer/consumer, the second using a notification utility is a "program".

    (Just a couple of ideas... you could also share data using a FGV / Global)

Maybe you are looking for