Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How to Compare Price of the Better Fuel to Flex-Fuel Vehicles using QStyleSheet class of Qt on Maemo

From Wiki
Jump to: navigation, search
Article Metadata
Article
Created: flaviofabricioferreira (11 Jan 2009)
Last edited: lpvalente (10 Mar 2013)

In this example, it is used a QFrame object to add a background image to give a better look and feel to our application. The following picture shows how to add the background image in QFrame object by using the Style Sheet property.


Betterfuel0.png


Such an application shows the better fuel to buy according to the price given by the user. The calculation is made following the rule: If alcohol has a price 70% smaller than gasoline it is advantageous to buy alcohol, otherwise gasoline is better. The snapshot bellow shows the application running.


Betterfuel1.png


Betterfuel2.png
This page was last modified on 10 March 2013, at 13:27.
51 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×