canUndo
			
			QML and Qt Quick
		
7
Posts
2
Posters
2.5k
Views
2
Watching
- 
TextInput { id: inpuT canUndo :true x: 232 y: 29 width: 952 height: 71 font.pixelSize: 12 }There's a problem with canUndo, here's an error: "Invalid property assignment: "canUndo" is a read-only property". I don't get it there's written that canUndo is bool function am I doing anything wrong? Edited: Use ``` (3 backticks) to use code blocks - p3c0 
- 
TextInput { id: inpuT canUndo :true x: 232 y: 29 width: 952 height: 71 font.pixelSize: 12 }There's a problem with canUndo, here's an error: "Invalid property assignment: "canUndo" is a read-only property". I don't get it there's written that canUndo is bool function am I doing anything wrong? Edited: Use ``` (3 backticks) to use code blocks - p3c0 
- 
@Zubalama It is readonly property. If you want to perform undo operations just do ctrl-zand for redoctrl-shift-z(on Linux).
- 
well I want to create undo button but it doesn't work... hows that? Keys.onPressed: { if(event.key===Qt.Key_Space){ event.accepted=true inpuT.undo() }
