[Qt-creator] 3.6 UML plugin

Jason H jhihn at gmx.com
Tue Oct 27 17:43:38 CET 2015


I noticed the syntax was very close to QML ( http://doc-snapshots.qt.io/qtcreator-3.6/creator-modeling.html ) :
 Icon UseCase
     Title: "Use-Case"
     Elements: item
     Stereotype: 'usecase'
     Display: icon
     Width: 40
     Height: 20
     BaseColor: #5fb4f0
 Begin
     Ellipse 20, 10, 20, 10
 End

Could be converted to:

Icon { 
  id: useCase
   elements: item
   stereotype: 'usecase'
   display: icon
   width: 40
   height: 20
   baseColor: #5fb4f0
   visualization: Elipse {
      x: 20
      y: 10
      width: 20
      height: 10
    }
    //or
    function draw() {
    ...
    }
}

Was there a reason QML couldn't be used?



More information about the Qt-creator mailing list