PDA

View Full Version : The program is completed due to the lack of layout management on the form



maratk1n
30th August 2017, 17:16
I'm trying to use a virtual keyboard (https://www.linux-apps.com/p/1132203).
I noticed a very strange thing. If you remove the linker on the form, the program terminates with an error

Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
12573
With the vertical line-up everything works.
An error occurs when the focus is changed (if you click on another qLineEdit) in file examplemyfocus.cpp in line

((Tester*)this->parent())->getKeyboard()->focusThis(this);
Because of what it can happen?

d_stranz
30th August 2017, 22:15
If you remove the linker on the form,

What is a "linker"?


An error occurs when the focus is changed

That's nice. Any particular error, or can we choose the error ourselves?


Because of what it can happen?

- "this" is null or uninitialized
- parent() returns a null pointer
- getKeyboard() returns a null or invalid pointer
- focusThis() fails

maratk1n
31st August 2017, 12:47
What is a "linker"?
I do not know how this translates into English. I meant the layout: on the grid, vertical, etc.


That's nice. Any particular error, or can we choose the error ourselves?
For example, I have 2 qlineedit. You need to focus on the required field so that the keyboard prints where it's needed. When trying to change the focus, the program breaks with an error, which I wrote