Creating UI elements with Codes
I have read and watch numerous, ALOT, of tutorial certified qt videos.
i have a general idea of how to create UI elements with code, but the ONE and i believe most important thing they don't mention, is where do you place that piece of code...
Let's say i want to create a LineEdit in a form called LOLApp.UI
where DO i place this code
Code:
//this is an example not a real code... writing it on the fly
void LOLapp::createAButton() {
}
now where do i place this code? LOLApp.cpp, LOLApp.h, main.cpp?
if u need more info tell me...
Re: Creating UI elements with Codes
Eeeem.... you put the code in a place where you want to create the object. You should be the one to decide where that should be. However another question is why do you want to create objects in code if you are using UI files.