diff options
Diffstat (limited to 'src/quick/items/qquickrepeater.cpp')
-rw-r--r-- | src/quick/items/qquickrepeater.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quick/items/qquickrepeater.cpp b/src/quick/items/qquickrepeater.cpp index 3703bb38cf..35d9da976d 100644 --- a/src/quick/items/qquickrepeater.cpp +++ b/src/quick/items/qquickrepeater.cpp @@ -439,6 +439,12 @@ void QQuickRepeater::initItem(int index, QObject *object) } d->deletables[index] = item; item->setParentItem(parentItem()); + + // If the item comes from an ObjectModel, it might be used as + // ComboBox/Menu/TabBar's contentItem. These types unconditionally cull items + // that are inserted, so account for that here. + if (d->dataSourceIsObject) + QQuickItemPrivate::get(item)->setCulled(false); if (index > 0 && d->deletables.at(index-1)) { item->stackAfter(d->deletables.at(index-1)); } else { |