blob: 3cd38da24322fcba268559572d7f153963648677 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import QtQuick 1.0
import Qt.test 1.0
Item {
id: arbitraryVariantConsumer
property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider }
property int sideEffect: 10
function callCppFunction() {
// in this case, we call a nonconst CPP function with an integer return value and no arguments.
arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + arbitraryVariantProvider.modifyVariantChangeCount();
}
}
|