Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Help needed: Android btchat (Qt5.3) buttons and fields squeezed together, no window, Connect button shows blank field?
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!
Please, give us a link to the example you are trying to run, otherwise it's very difficult to help you.
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:
Now I think of it, could it be that some features are just not available for Android? See this post
for example. The window menu appears not available for Android.
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.
What does "rewrite the interface" involve? Edit the source code for Qt and recompile?
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.
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: