Of course, createSurface() is called more than once, for example when coming back from the background, and you cannot add a View to the layout more than once, since this leads to an uncaught exception and a crash. So add the QtEditText once, in the constructor, as is indeed sensible. Fixes: QTBUG-122648 Change-Id: I7ef48951cd8a1c99935f5e96c70b6dbf0c745803 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 211e51b81ec9800161d0a98c6f70c747701035e8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%