Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt for android - Input focus
Forum Updated to NodeBB v4.3 + New Features

Qt for android - Input focus

Scheduled Pinned Locked Moved Solved Mobile and Embedded
13 Posts 5 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jsulmJ jsulm

    @LiaoXuewei Why do you use dialogs on Android? This is unusual UI design on Android.

    M Offline
    M Offline
    mvuori
    wrote on last edited by
    #4

    @LiaoXuewei Questioning that doesn't help solving the problem. There are valid reasons for using widgets, including the efford of unnecessarily rewriting a UI.

    jsulmJ L 2 Replies Last reply
    0
    • M mvuori

      @LiaoXuewei Questioning that doesn't help solving the problem. There are valid reasons for using widgets, including the efford of unnecessarily rewriting a UI.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #5

      @mvuori I didn't say it helps to solve the problem. I just wanted to make sure the OP is aware of this UI design topic.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • L LiaoXuewei

        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?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #6

        @LiaoXuewei have you given your dialog the main widget as parent?


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        L 1 Reply Last reply
        0
        • J.HilkJ J.Hilk

          @LiaoXuewei have you given your dialog the main widget as parent?

          L Offline
          L Offline
          LiaoXuewei
          wrote on last edited by
          #7

          @J.Hilk said in Qt for android - Input focus:

          @LiaoXuewei have you given your dialog the main widget as parent?

          Yes, i had.

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @LiaoXuewei Why do you use dialogs on Android? This is unusual UI design on Android.

            L Offline
            L Offline
            LiaoXuewei
            wrote on last edited by
            #8

            @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.

            1 Reply Last reply
            0
            • M mvuori

              @LiaoXuewei Questioning that doesn't help solving the problem. There are valid reasons for using widgets, including the efford of unnecessarily rewriting a UI.

              L Offline
              L Offline
              LiaoXuewei
              wrote on last edited by
              #9

              @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.

              1 Reply Last reply
              0
              • L Offline
                L Offline
                LiaoXuewei
                wrote on last edited by
                #10

                Anybody can help me? :)

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  LiaoXuewei
                  wrote on last edited by
                  #11

                  Anybody can help me?
                  I think I don't know some information about QT. Somebody knows it?

                  1 Reply Last reply
                  0
                  • Shrinidhi UpadhyayaS Offline
                    Shrinidhi UpadhyayaS Offline
                    Shrinidhi Upadhyaya
                    wrote on last edited by
                    #12

                    hi @LiaoXuewei , can you share the code!

                    Shrinidhi Upadhyaya.
                    Upvote the answer(s) that helped you to solve the issue.

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      LiaoXuewei
                      wrote on last edited by
                      #13

                      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

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved