Automatic Objectname update [SOLVED]
-
wrote on 7 Jul 2014, 22:46 last edited by
Hi,
I was wondering if the Qt Editor has an automatic way to update object name when you change it in the UI editor. Because it's a bit annoying having to check all the places where I'm using that name and change it.
Also, i wannted to know if there is a shortcut or also an automatic way to generate a definition of a function, after writing it's declaration on the header file.
Thanks
-
wrote on 7 Jul 2014, 22:57 last edited by
Welcome to DevNet
-
In QtCreator you can change the strings by right click on a directory name in a Projects panel in select "Find in this directory" enter your search string and clock "Search & Replace" button.
If you need to change a variable or class name then Ctrl+Shift+R should do it. -
Put cursor on a new function declaration and press Alt+Enter select "Add definition in "
-
-
wrote on 7 Jul 2014, 23:17 last edited by
Thank you very much andreyc, that is very usefull!!
-
wrote on 7 Jul 2014, 23:21 last edited by
You are welcome.
Please add [SOLVED] to the title of your message if you consider it is solved.
-
wrote on 8 Jul 2014, 06:30 last edited by
In Addition to that , If you have member variables , then put the cursor on the member area and press Alt + Enter , it will automatically generate getter() and setter() functions.
!http://i58.tinypic.com/351955w.png(image)!
Happy Coding !
3/5