How to change the image of a line when you click on it from the waterfall cookbook sample application

Hi, I have a few sql data. And I'm showing them with qlistdatamodel. I used the ListItemProvider and implementing customControl for each line in the sample application cascade cookbook. Which can be found in here. I want to change an image of the line when it is selected. I modified the method 'select' of 'recipeItem.cpp'

void RecipeItem::select(bool select)
{
  // When an item is selected, show the colored highlight Container
  if (select)
  {

      mHighlighContainer->setOpacity(0.9f);
      mItemImage->setImage(Image(QString("app/native/assets/btn_a.png")));

  }
  else
  {
    mHighlighContainer->setOpacity(0.0f);

  }
}

It should have changed the image btn_a.png. But what it does is removes the image and the text remains. Thank you.

I just found out another of my post that my uri of the image is incorrect. The format of the url I was using was valid only in a Beta SDK. It should be like "asset:///btn_a.png". Now it works perfectly

Tags: BlackBerry Developers

Similar Questions

  • How to create a form that is displayed when you click on a button?

    I want to create a contact form on my Web site that appears when you click the button 'click here to contact us' floating on the web page. I can't figure out how to make this work. Any help would be appreciated!

    You can really use any widgets of composition. You probably want to use the Widget for Composition of ToolTip and the setting of the trigger button and form as target.

  • How to change the name of my application

    Hello

    Basically, I started my application as HelloWorld. Using eclipse.

    But since then Ive has obviously changed the name of it and edited blackberry_app_descriptor.xml to change the title.

    What I don't understand is why when I connect it, it refers to it as HelloWorld. And when he needs permission to run, it says HelloWorld application approval. And the sons are named HelloWorld!

    The record of deliverables is full file HelloWorld. And Ive known these but they rename back, so I guess, this is my code generation before his transport throughout. It is not Helloworld.cod but MyAppName.cod!

    Can someone tell me how to rename my App fully. What bit I have to change?

    in the descriptor of the application, go to the tab generate and verify the name of the module.
    Also rename the eclipse project.

    This should help, if not, create a new project and copy your stuff (just like a last solution)

  • How to show the BLOB (file pdf, image) as pop up when you click on a link

    Hi all

    I have a requirement that, when, clicks on a commandlink in a page, I need to show the BLOB (pdf, image in my case) in the pop-up window.

    I am therefore able to get the BLOB when link clicks on command.

    Please help me on this aspect, how can I show this BLOB in pdf or image format in the pop-up window

    Thank you very much

    Krishna

    Hello

    Have you seen this? https://technology.AMIS.nl/2011/07/28/ADF-11g-show-PDF-in-a-popup/

    Concerning

  • How to change a default search system (used when you enter a query directly to the Mozilla address string)?

    no details

    You can change the pref keyword. URL on the topic: config page to specify which service to use for the address bar.

  • How to change the frequency of sampling DAQmx during execution?

    Hello guys. I'm using LabVIEW in the measures of the frequency response function. My application requires the sampling rate to change according to the frequency of the signal during execution.

    I tried to do it with a "structure of the event" and it works well when I change the rate manually via the front control but it backs do not work when I set up the sampling frequency to vary automatically (just a frequency sweep). Photos below:

    Why not the structure of the event feels the change in the value of "rate"?

    Thanks in advance for your help.

    Lucas

    Hello

    In "automatic mode" to change the sampling rate, the calculated rate is written in the local variable (as illustrated in the code).  Structure of the event does not change value in the local variable as an event.

    In order to make the structure of the event to recognize the change in value of an indicator such as event: write the new value to the property "Value (Sgnl)" corrosponding node to rate indicator (see figure below).  This will make the structure of the event accept the value change in the indicator as event.

    Note: Use architectures such as producers and consumers for such applications, which makes the application readable and expandable.

    See rear queries if any.

  • want to turn off highlight the particular list field line, when you click

    Hello

    I have a list of line 3 display, on which I have 2 lines that are highlighted with little color.

    When I click on the particular line, I want to turn off the highlight on this line.

    How can I remove the list and add to the list to turn off highlight the special line, which is which is clicked by the user.

    Concerning

    Antoine Singh

    Hello

    I was able to do

    I have again to call the constructor of the list view by changing the value in the table highlight

    Concerning

    Antoine Singh

  • How to change a div in a document when you used a template (Dreamweaver CS5)

    I have created a template, which is used by several pages, but you want to change the < div id = 'content-full-width' > <!-InstanceBeginEditable name = 'content'-> to a page to enlarge the content area.

    If I want to make a div id = 'new_content' and then make my page < div id = "new_content" > <!-name = 'content'-> InstanceBeginEditable

    How can I do that shows a page that is based on a main template?

    TKS

    Deb

    Thanks Murray.  I tried to fix the template to allow me to change the div tag, everything I tried screwed up the model (I am still relatively new to this).

    Stupid me, I had the editable inside the div tag, so he restrained me.  I saw another post (although I have searched and searched), after I posted my question with the same type of question and noted the necessary editable tag outside of the div.

    I tried again, and it worked this time.

    Before:

    After:

    .

    Thanks again for your help.

    Deb

  • How can I stop under tools appear automatically when you click a tool in the palette?

    I must have clicked something or inadvertently pressed a shortcut keyboard or something because a few weeks earlier, the secondary tools on the palette of tools started popping up without the button of the mouse for a second. Now when I click on a tool (the tool rectangular marked for example), the hidden tools (elliptical marked, single line etc..). Please do stop! It's annoying as hell.

    I use PS CS5 on Windows 7.

    Usually, it takes with the double click time preference system.

  • How to set preferences for what happens / appears when you click the new tab

    I used to have seen my sites more used, but for some reason that I don't have more since I uninstalled a toolbar that has become the default search engine itself!
    So now, I want that, instead of having an error message; the new tab display a tab blank when I click on button ' + '!

    You can check the browser.newtab.url pref on the topic: config page and set this pref to your preferred the new tab page.

    • the new default tab with the tiles page is on: newtab
    • the default homepage is Subject: Home
    • to a blank page, you can use Subject: vacuum

    The pref browser.newtabpage.enabled must be set to true to use the page defined through browser.newtab.url like the new tab page.

    See this article on the page tab (topic: newtab):

  • In Acrobat Reader ms for Android, how to stop we Verizon cloud to launch when you click on the floating action button to recover the files?

    I have a Verizon Samsung S5 Galaxy brand, which means many Verizon apps have been added since the installation of the plant.

    Recently I have updated Adobe Acrobat Reader to the latest version.
    When I clicked on the floating action button to open a PDF file, it launched Verizon cloud rather than show my directory of files.

    Unless I disabled it Verizon Cloud altogether, whenever I did, I would get the app from Verizon cloud instead of a list of files.

    CD player is the only application that did such a thing. Is it a defect?

    Thanks for the information.

    To remove the application Adobe Acrobat DC Verizon cloud storage, you can "turn off" the application of cloud of Verizon 'Settings'--> 'Application Manager'--> 'applications '. After that, whenever you press the floating Action button, you will get a list of all your pdf files on your device.

    If you want to see both the Verizon cloud based files as well as files of your internal/SD memory card, I ask allows you to download an application from file manager to game Google for example and explore, shop ES File Explorer etc. After that, whenever you rely on the floating action button, you will receive an option to open the files either from the cloud of Verizon or the files on your device.

    I hope this helps. Please let us know if you observe problems more.

    Thank you.

  • Changes in size of HTML5 sensitive when you click table of contents

    I worked with my developer to implement the CSH sensitive HTML by calling the URL of the topic. He said it has works very well when he initially consumed my files. Now that I've done an update, it says they behave differently. He calls the subject in an iFrame, and when he does this for just about any subject other than the default theme, topic views, but he did not get the assistance framework (table of contents, glossary, etc.). For example, his appeal is in this directory:! SSL!/project/topic.htm

    He says he can call it like that! SSL!/project/index.htm#t=topic.htm then the topic displays fine, but the window resizes when it click on the table of contents or one of the buttons aid. Maybe Willam van Weelden can help?

    HR changed 11.0.3. You can always call a topic, but it will redirect you to the start page of the project. HR 11.0.3. Adobe introduced an iFrame to display the content in the topic where RoboHelp used to have completely separate pages.

    Attributes for where the subject must be open lies in the scripts of different widgets. For example, in toctree.js, on line 338 and 345 target is set for the table of contents.

    I am surprised that the _self option is to give you problems. I know that it works.

    I think that Adobe he didn't consider a scenario that sensitive help was to be opened in an iFrame. I recommend that you file a bug report.

  • Change specific line when you click the button on the table of the ADF

    We have a table column that contains 3 columns contain the adf (EDIT) button for each row.
    etc. click on Edit I want to change this specific line and ranks should be read only.

    Hello

    even if you use ADF you can work with the row index. You could use an af:clientAttribute and add context information to renderers of cell, which could also be the PK. Then, you use a setPropertyListener to define an attribute of scope memeory with the value of the button clicked (the index of the line or the PK ID line). During the re-rendering of the table, you will return a bean managed of the readOnly cell renderer property and make sure that the current line (#{line}) Pk is the same one that you saved on the button click. If so, you return true if the row in the table is editable

    Frank

  • Relocation of bar EARLY and how to remove software that will not delete when you click Change/Remove

    I tried every icon on "my control panel" and nothing I have a discovery tells me how to move my OE or START bar to remove a program that won't be not clear.

    I tried every icon on "my control panel" and nothing I have a discovery tells me how to move my OE or START bar to remove a program that won't be not clear.

    What is a start bar? The Windows taskbar? What version of Windows are you using?

    Try this to remove programs.

    Utility Windows Install CleanUp:
    http://MajorGeeks.com/Windows_Installer_CleanUp_Utility_d4459.html

    Bruce Hagen MS - MVP [Mail]

  • How can I fix mf_status.exe error messages when you click on the button stop?

    • The exact error message:

    The instruction at 0x00000000 referenced memory at 0x00000000. The memory could not be read.

    Click on OK to terminate the program.

    • Operating system Version &:

    Windows 7 Home Premium

    Service Pack 1

    System manufacturer: TOSHIBA

    Model: Notebook

    Note: 4.1 Windows Experience Index

    Processor: AMD Athlon (TM) II Dual-Core Processor 2.10 GHz

    Installed memory (RAM): 4.00 GB (usable 3.74)

    System type: 64-bit Operating System

    Pen and touch: no pen or press enter is available for this view

    • Version of the browser &

    Internet Explore 10

    Version: 10.0.9200.16540

    • No software or hardware that I recently installed or deleted

              MediaFire Express BETA for Windows

    Version: 0.15.4.4888

    • Any recent changes I made to the system

    I accidentally click the disk wiper in CCleaner. Does this affect my system?

    • The things that you have already tried to solve the problem

    http://www.pcmaxutilities.com/wikidllfiles/mfstatus-exe-error-fix-Guide.html

    I also downloaded: MFStatus.exe files repair tool

    Any help will be much appreciated. Thank you! :-)

    Hey Ken, COLIENNE,.
    Let me to interfere here because I met the same problem, and I followed method 1 suggested by jojo.
    And the problem comes from MediaFire Express, even if it is not in beta for me.
    Windows Vista SP2.
    Hope I helped a bit...
    Sincerely,
    Bertrand

Maybe you are looking for