TextField Android Keyboard Covering
Unsolved
Qt 6
-
Hello guys I'm working Android 10 with Qt 6.2. I have TextField clicking it opens the keyboard and overlays TextField. A person/institution called FalsinSoft has produced such a solution.
QML: Resize controls when Android virtual keyboard come up
sample project AndroidKeyboardSize
Everything is ok, but there is a problem on the Java side (I don't know much about Java). The output is like this
W System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.app.Activity.findViewById(int)' on a null object reference
The error occurs on this line.
Line
final View AppRootView = ((ViewGroup)m_ActivityInstance.findViewById(android.R.id.content)).getChildAt(0);
How can I fix this error? Or is there a different solution where we can scroll my QML screen when the keyboard is opened?