Skip to content

Some feedback #21

@MahmoudFayed

Description

@MahmoudFayed

Hello Morten

At first, I would like to say thanks for (Qt for Web Assembly), It's really great and impressive work :D

Using the Ring programming language, RingQt and Qt for Web Assembly we provided a playground for the Ring language.

URL: https://ring-lang.github.io/web/tryringonline/project.html
Source Code: https://github.com/ring-lang/ring/tree/master/tools/tryringonline

We don't use (threads) and enabled I/O operations by using pause/resume for the Ring VM, where we pause the execution when the program asks for an input, then resume once the user provide this input and press ENTER or click send.

One of the issues in QTextEdit was that the (Tab) key move the focus instead of adding the Tab character to the text
Using setTabChangesFocus(False) doesn't work.
So, we applied a workaround using Events Filter and Key press event: https://github.com/ring-lang/ring/blob/master/tools/tryringonline/tryController.ring#L68C12-L68C37

So, in summary we were successful in using (Qt for Web Assembly) to develop the playground, and we are very happy with this: https://groups.google.com/g/ring-lang/c/wMGdIxss3gk

For Mobile support, we can build a Mobile application using (Qt for Android) from the same source code since it's already the same code for (Desktop, WebAssembly, Android, etc.)
I just hope that we can use the WebAssembly version on the Mobile too, but we have one issue (The Native Mobile Keyboard appears, but when we type character, we don't see it in QTextEdit), Just two characters are working (ENTER & BACKSPACE).

We are using Qt 5.15.16
Tested using Android, different web browsers like Chrome, Firefox, etc.

I hope that this issue could be solved in the future so we can use the WebAssembly version on Mobile devices instead of creating a Mobile package.

Greetings,
Mahmoud

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions