查看完整版本: [-- QML  中 PathSvg 不显示 --]

QTCN开发网 -> Qt QML开发 -> QML  中 PathSvg 不显示 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

lizequan 2021-08-07 18:38

QML  中 PathSvg 不显示

为什么
  1. import QtQuick 2.12import QtQuick.Window 2.12
    Window
    {
        id:root
         visible: true
         width: 500; height: 500
          Rectangle     {
                       x: 0; y: 0
                       width: 10
                       height: 10
                      color: "blue"
                     }
          Path     {
                  startX: 50; startY: 50
                  PathSvg {
                              path: "L 150 50 L 100 150 z"
                           }
               }
    }
这么写 路径 没有显示呢?  我看qt helper 上没有更多内容了,想问一下大家,刚开始学,所以问的比较简单


lizequan 2021-08-12 14:32


查看完整版本: [-- QML  中 PathSvg 不显示 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled