Qt for android - Input focus
-
I have developed a QT application that can run on Windows and Android platforms.
The application has dialog boxes, which contain text boxes. When running on Android platform, the text boxes of the dialog boxes can not get the input focus. The input focus is always on the text box of the main window. How to solve this problem?
-
Application was developed by Qt Widgets.
-
I have developed a QT application that can run on Windows and Android platforms.
The application has dialog boxes, which contain text boxes. When running on Android platform, the text boxes of the dialog boxes can not get the input focus. The input focus is always on the text box of the main window. How to solve this problem?
@LiaoXuewei Why do you use dialogs on Android? This is unusual UI design on Android.
-
@LiaoXuewei Why do you use dialogs on Android? This is unusual UI design on Android.
@LiaoXuewei Questioning that doesn't help solving the problem. There are valid reasons for using widgets, including the efford of unnecessarily rewriting a UI.
-
@LiaoXuewei Questioning that doesn't help solving the problem. There are valid reasons for using widgets, including the efford of unnecessarily rewriting a UI.
-
I have developed a QT application that can run on Windows and Android platforms.
The application has dialog boxes, which contain text boxes. When running on Android platform, the text boxes of the dialog boxes can not get the input focus. The input focus is always on the text box of the main window. How to solve this problem?
@LiaoXuewei have you given your dialog the main widget as parent?
-
@LiaoXuewei have you given your dialog the main widget as parent?
@J.Hilk said in Qt for android - Input focus:
@LiaoXuewei have you given your dialog the main widget as parent?
Yes, i had.
-
@LiaoXuewei Why do you use dialogs on Android? This is unusual UI design on Android.
@jsulm said in Qt for android - Input focus:
@LiaoXuewei Why do you use dialogs on Android? This is unusual UI design on Android.
Dialog is uesd as some setting form or other input form.
-
@LiaoXuewei Questioning that doesn't help solving the problem. There are valid reasons for using widgets, including the efford of unnecessarily rewriting a UI.
@mvuori said in Qt for android - Input focus:
@LiaoXuewei Questioning that doesn't help solving the problem. There are valid reasons for using widgets, including the efford of unnecessarily rewriting a UI.
Yes, the Qt widgets is enough for me. I don't want rewriting a UI.
-
Anybody can help me? :)
-
Anybody can help me?
I think I don't know some information about QT. Somebody knows it? -
hi @LiaoXuewei , can you share the code!
-
Thks to all, I have found the reason. Because i have call setting windowFlags funtion, setWindowFlags(windowFlags() | Qt::Tool), it causing problems to occur.
https://stackoverflow.com/questions/55040327/qt-for-android-not-get-the-input-focus-in-dialog