×
Namespaces

Variants
Actions
Revision as of 16:23, 12 January 2009 by flaviofabricioferreira (Talk | contribs)

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

From Nokia Developer Wiki
Jump to: navigation, search

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

Link for the Efforts Embedded UFCG: http://efforts.embedded.ufcg.edu.br/qt/

48 page views in the last 30 days.