View Full Version : how to dynamically add a textedit on clicking a button
Prateek8368
4th February 2017, 12:35
can anyone tell me how to add a textedit to my workspace at a specified position when i click on the button given in the workspace.
ado130
4th February 2017, 13:53
Maybe visible property true/false?
Prateek8368
5th February 2017, 12:39
No no not by that because i dont know anything about the layout or where user want to place it after clicking i want to add a new textedit dynamically when i click on a push button
anda_skoa
6th February 2017, 08:06
In the slot connected to the button's signal, you just create the instance and add it to the layout you want it to be in.
Cheers,
_
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.