[Interest] problem when inheriting from QQuickItem
VStevenP
vstevenpavao at yahoo.com
Fri May 10 21:10:17 CEST 2013
One minor correction, the import commands should say MyItem, not KItem.
I adjusted the code below accordingly.
I am trying to figure out why my class which inherits from QQuickItem won't allow display of other embedded elements in my QML documents.
- VStevenP
--
The following QML document results in the display of the png:
import QtQuick 2.0
import MyItem 1.0
Item{
Image{
source:"knob.png"
}
}
The following QML document results in the png NOT being displayed:
import QtQuick 2.0
import MyItem 1.0
MyItem{
Image{
source:"knob.png"
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130510/c56a2ab7/attachment.html>
More information about the Interest
mailing list