查看完整版本: [-- 关于qml-material的问题 --]

QTCN开发网 -> Qt QML开发 -> 关于qml-material的问题 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

bianjs 2018-08-22 14:34

关于qml-material的问题

大家好,有谁编译过qml-material,编译也通过了,运行里面的demo,也能运行,但是不正确,下面是提示,有谁帮助解决一下,谢谢!

Starting F:\qt_for_devep\qml-material-develop\build-demo-Desktop_Qt_5_11_1_MinGW_32bit-Release\release\demo.exe...
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/ActionBar.qml:375:17: QML Standard: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Icon.qml:54:5: QML Image: Cannot open: qrc:/icons/navigation/more_vert.svg
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Icon.qml:54:5: QML Image: Cannot open: qrc:/icons/navigation/menu.svg
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Icon.qml:54:5: QML Image: Cannot open: qrc:/icons/navigation/close.svg
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:133: TypeError: Cannot read property 'opacity' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:132: TypeError: Cannot read property 'blur' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:125: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:124: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:123: TypeError: Cannot read property '0' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:84: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:151: TypeError: Cannot read property 'opacity' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:150: TypeError: Cannot read property 'blur' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:143: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:142: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:141: TypeError: Cannot read property '0' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:46: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:40: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:38: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Ink.qml:26: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:71: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:84: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:83: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Label.qml:104: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:133: TypeError: Cannot read property 'opacity' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:132: TypeError: Cannot read property 'blur' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:125: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:124: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:123: TypeError: Cannot read property '0' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:84: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:151: TypeError: Cannot read property 'opacity' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:150: TypeError: Cannot read property 'blur' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:143: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:142: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:141: TypeError: Cannot read property '0' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:46: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:40: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:38: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Ink.qml:26: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:71: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:84: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/QtQuick/Controls/Styles/Material/ButtonStyle.qml:83: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Label.qml:104: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Ink.qml:38: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Ink.qml:26: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/IconButton.qml:51: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/IconButton.qml:50: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Popover.qml:39: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:133: TypeError: Cannot read property 'opacity' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:132: TypeError: Cannot read property 'blur' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:125: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:124: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:123: TypeError: Cannot read property '2' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:84: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:151: TypeError: Cannot read property 'opacity' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:150: TypeError: Cannot read property 'blur' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:143: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:142: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:141: TypeError: Cannot read property '2' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:46: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Popover.qml:102: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Tooltip.qml:41: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Tooltip.qml:40: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Label.qml:104: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Ink.qml:38: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Ink.qml:26: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/IconButton.qml:51: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/IconButton.qml:50: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Popover.qml:39: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:133: TypeError: Cannot read property 'opacity' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:132: TypeError: Cannot read property 'blur' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:125: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:124: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:123: TypeError: Cannot read property '2' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:84: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:151: TypeError: Cannot read property 'opacity' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:150: TypeError: Cannot read property 'blur' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:143: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:142: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:141: TypeError: Cannot read property '2' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:46: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Popover.qml:102: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Tooltip.qml:41: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Tooltip.qml:40: ReferenceError: Units is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/Label.qml:104: ReferenceError: Device is not defined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:133: TypeError: Cannot read property 'opacity' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:132: TypeError: Cannot read property 'blur' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:125: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:124: TypeError: Cannot read property 'offset' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:123: TypeError: Cannot read property '0' of undefined
file:///C:/Qt/Qt5.11.1/5.11.1/mingw53_32/qml/Material/View.qml:84: ReferenceError: Units is not defined

enaldick 2019-02-12 15:51
这是警告,运行时!
旧版的布局使用anchors来实现,现在也没继续更新维护了,你可以自己修改一下它的库,使用Layout来进行布局;


查看完整版本: [-- 关于qml-material的问题 --] [-- top --]



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