Unsolved Update Windows Title in Embedded Application
-
Hi,
Qtopia ? Are you locked to it ? That's a project that has reached EOL 8 years ago so it's not necessarily a good idea to start a new project with it.
-
Hi @SGaist,
Its a new device for me, and I am following the base code provided by the device vendor. I don't know how to change the architecture and if i do something how to make it work on device.
I tried hello world ui application, compiled successfully but it gives me run time exceptions on device.Hope this answers your query.
Thanks
-
You should check with the vendor if you can use something a bit more recent.
As for your error, can you get a stack trace ?
-
Hi @SGaist,
Sorry for delayed response as I am woking in Qatar and we have weekend for Friday/Saturday.
I tried again the same thing and I am not getting exception now, no idea what I had done before, may be some uninitialized pointer that I may have fixed when moving forward to application logical code.
Currently as I mentioned that I am not getting exception but issue is that the main window title is getting updated when the control is returned back to main constructor. Also to mention that I have disabled the push buttons in the same function and that code is working fine:
For the main window title I have placed following line of code:setWindowTitle("PURCHASE"); centralWidget->update(); centralWidget->repaint();
Thanks
-
The QMainWindow title has nothing to do with the central widget.
-
Hi @SGaist,
Can you please write me a line or reference on how do to update QMainWindow title in my code as I am not using "ui" component so its something unknown for me.Thanks
-
Well:
@Kashif said in Update Windows Title in Embedded Application:setWindowTitle
of your QMainWindow is the right method AFAIR.
Can you show what you get ?
-
Hi @SGaist,
I used this function in my code but the title is getting updated only when the control returns back to push button calling event (the class constructor where I have defined central widget and buttons, code is pasted in third comment)
Thanks
-
Why are you calling
QWidget::setWindowTitle
rather than justsetWindowTitle
? -