I'm having difficulty fully using a very simple class I wrote which inherits 
from QQuickItem.  I'm using Qt 5.0.0 on Win7 32-bit.

I've exposed my class to QML, and I'm able to use it in my QML documents, but 
if I embed any visible objects, they won't display.

The following QML document results in the display of the png:

importQtQuick2.0
importKItem1.0

Item{
Image{
source:"knob.png"
}
}

The following QML document results in the png NOT being displayed:

importQtQuick2.0
importKItem1.0

MyItem{
Image{
source:"knob.png"
}
}

The MyItem class is very simple.  It just inherits from QQuickItem and adds one 
property to it.  I expose it to QML in the normal way and can use it in my QML 
documents.

Can someone explain why Images and other visible objects will not display when 
nested in MyItem?  I can't find this bug listed in the JIRA system, so I 
thought I'd ask here first to see if there's something I'm missing.

 - VStevenP
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to