Calculator Builder Example
Hi,
i took a look at the Calculator Builder Example. I expect the calculatorbuilder.exe to load the form that is in calculatorbuilder.exe/forms/calculatorform.ui
Code:
QFile file(":/forms/calculatorform.ui");
But when I slightly modify the .ui file (e.g. change the label text) nothing changes. The form is not loaded. What am I getting wrong?
Re: Calculator Builder Example
The ui is not loaded from the file, but from a resource that is compiled into the application executable (hence the colon in the file name). You have to rebuild the application making sure the resource is refreshed if you want to see changes.