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. Help needed: Android btchat (Qt5.3) buttons and fields squeezed together, no window, Connect button shows blank field?
Forum Updated to NodeBB v4.3 + New Features

Help needed: Android btchat (Qt5.3) buttons and fields squeezed together, no window, Connect button shows blank field?

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 2.1k 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.
  • A Offline
    A Offline
    aqtdummy
    wrote on last edited by
    #1

    I am excited to see that Qt5.3 now includes the BlueTooth function, but I cannot make it work on my Note 3. BlueTerm app works fine. The btchat example runs but shows the buttons and fields all squeezed together in a small box occupying ~ 1/10 of the screen area at the center of the screen. There is no window as shown in the screenshot of the example. Clicking on the "Connect" button shows "Scanning ..." and then "Select the chat service to con" (it went off screen) and a blank field below it. Again the BlueTerm app from GooglePlay works fine so I don't think it's hardware problem. Could someone please help? Thank you!

    1 Reply Last reply
    0
    • GianlucaG Offline
      GianlucaG Offline
      Gianluca
      wrote on last edited by
      #2

      Please, give us a link to the example you are trying to run, otherwise it's very difficult to help you.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aqtdummy
        wrote on last edited by
        #3

        I just picked up the example from the Welcome part of the IDE by entering "Bluetooth" in the search field. Here is a link to the web version that looks like the same example:
        http://qt-project.org/doc/qt-5/qtbluetooth-btchat-example.html

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aqtdummy
          wrote on last edited by
          #4

          Now I think of it, could it be that some features are just not available for Android? See this post
          http://qt-project.org/forums/viewthread/42940/
          for example. The window menu appears not available for Android.

          1 Reply Last reply
          0
          • GianlucaG Offline
            GianlucaG Offline
            Gianluca
            wrote on last edited by
            #5

            Ok, I take a look of the example, and agree with you.
            In general (at least until 5.3), the UI forms created for the desktop doesn't work as it is on the mobile devices (Android & iOS).
            You need to rewrite the interface to be suitable for mobile devices.
            This apply to almost all example developed not explicitly targeted for mobile devices.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              aqtdummy
              wrote on last edited by
              #6

              What does "rewrite the interface" involve? Edit the source code for Qt and recompile?

              1 Reply Last reply
              0
              • GianlucaG Offline
                GianlucaG Offline
                Gianluca
                wrote on last edited by
                #7

                No, no, you don't need to edit the source code of Qt and recompile.

                You need to re-create the example using more suitable techniques for mobile devices. I suggest Qt Quick.

                Take a look of this example using Bluetooth with QML. It should run on mobile devices easily.
                http://qt-project.org/doc/qt-5/qtbluetooth-pingpong-example.html

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  aqtdummy
                  wrote on last edited by
                  #8

                  Thank you! I did see that example but I just need a terminal program, not a game. I suppose I could study how it is done.

                  I did look at Qt Quick in general and have some questions. I think I will make another thread for them.

                  Update: here it is:
                  http://qt-project.org/forums/viewthread/43090/

                  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