Diferència entre revisions de la pàgina «Making a QML gauge from GIMP»

De Wiki d'en Jordi Binefa
Dreceres ràpides: navegació, cerca
m (Modifying exported QML file)
m
Línia 18: Línia 18:
  
 
= Modifying exported QML file =
 
= Modifying exported QML file =
 +
Original [https://github.com/jordibinefa/Qt/blob/master/gauge01/madeWithGimp/Indicador00.qml Indicador00.qml] file.
 +
 
[[File:Indicador00 00.png|caption]]
 
[[File:Indicador00 00.png|caption]]
 +
 +
Copying [https://github.com/jordibinefa/Qt/blob/master/gauge01/madeWithGimp/Indicador00.qml Indicador00.qml] to [https://github.com/jordibinefa/Qt/blob/master/gauge01/imatge01/Indicador00.ui.qml Indicador00.ui.qml] and modifying some lines:
  
 
[[File:Indicador00 00.ui.qml.png|caption]]
 
[[File:Indicador00 00.ui.qml.png|caption]]

Revisió del 17:42, 10 ago 2018

caption

Drawing a gauge using GIMP

Steps to create a speedometer gauge. It uses layerfx.2.8.py script. Once it has been downloaded, it should be copied at ~/.gimp-2.8/scripts folder giving execution permissions (chmod u+x layerfx.2.8.py ).

indicador00.xcf is a free version of previous tutorial.

Exporting from GIMP to QML

Download qmlexpoter.py at ~/.gimp-2.8/plug-ins folder giving execution permissions (chmod u+x qmlexpoter.py ).

Restart GIMP to have the export command added to the File menu. Choose File > Export to QML to export GIMP design to a QML file. In the Export Layers to a QML Document dialog, enter a name and location for the QML file, and click Export.

Indicador00.qml and Indicador00_images folder exported from indicador00.xcf

(Official info: Exporting from GIMP to QML from doc.qt.io )

Modifying exported QML file

Original Indicador00.qml file.

caption

Copying Indicador00.qml to Indicador00.ui.qml and modifying some lines:

caption