Warning, /sdk/cutehmi/extensions/CuteHMI/Examples/Symbols/Pipes/Piping.2/README.md is written in an unsupported language. File is not indexed.
0001 # Piping example 0002 0003 This example shows how to use piping components provided by [CuteHMI.Symbols.Pipes.1](../../../../Symbols/Pipes.1/) extension. 0004 0005 To run the example use [cutehmi.view.4](../../../../../../tools/cutehmi.view.4/) tool. 0006 ``` 0007 cutehmi.view.4 CuteHMI.Examples.Symbols.Pipes.Piping.2 0008 ``` 0009 0010 A remark on Qt Creator. 0011 0012 \snippet View.qml Red-blue pipe 0013 0014 Qt Creator may refuse to render this pipe in "Design" mode. PipeConnector objects are created within named properties of red and 0015 blue rectangles. 0016 0017 \snippet View.qml Red rectangle outlet property 0018 0019 It comes out Qt Creator has troubles with such bindings if component is defined inplace. It would render pipe correctly however, if 0020 rectangles were defined in separate QML files. Thus if one wants to use PipeConnector objects as item properties with Qt Creator in 0021 "Design" mode, he has to pack such code into custom QML component. For example red rectangle code below could be moved to 0022 `RedRectangle.qml` file. 0023 0024 \snippet View.qml Red rectangle 0025 0026 \example View.qml 0027 Here is a complete listing of the example source file.