Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Works:
- Error {
- id: error
- anchors.top: parent.top
- width: parent.width
- errorModel: sendErrorModel
- }
- Connections {
- target: error.errorModel
- onDataChanged: {
- error.height = (error.errorModel.rowCount() * 20)
- }
- }
- // Doesn't work:
- Error {
- id: error
- anchors.top: parent.top
- width: parent.width
- errorModel: sendErrorModel
- Connections {
- target: errorModel
- onDataChanged: {
- height = (errorModel.rowCount() * 20)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement