Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. The app developed by Qt for wasm do not looks good on mobile browser
Forum Updated to NodeBB v4.3 + New Features

The app developed by Qt for wasm do not looks good on mobile browser

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
14 Posts 5 Posters 1.7k Views 2 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.
  • T Offline
    T Offline
    tham
    wrote on 28 Sept 2019, 07:18 last edited by
    #1

    The examples of Qt company offer looks great if I open them from desktop browser, but it looks bad on the browser of mobile, any suggestions?Thanks

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tham
      wrote on 28 Sept 2019, 07:39 last edited by
      #2

      Just find out there is a new page(Qt for WebAssembly) open, could anyone help me move this topic to there? Thanks

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kuersat
        wrote on 28 Sept 2019, 11:07 last edited by
        #3

        yeah you are damn right i realised that too. None of them Qt demos are scaled even "good" on the phone.
        But I think there might be a solution cause the Application you build in WebAssembly sees a QScreen.
        I didnt figure out but maybe somebody got deeper into that issue.

        1 Reply Last reply
        1
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 29 Sept 2019, 08:11 last edited by
          #4

          Hi
          In what way look bad ?

          T 1 Reply Last reply 29 Sept 2019, 09:03
          0
          • M mrjj
            29 Sept 2019, 08:11

            Hi
            In what way look bad ?

            T Offline
            T Offline
            tham
            wrote on 29 Sept 2019, 09:03 last edited by
            #5

            @mrjj Open them by yourself is the fastest way, simply put, sizes do not scaled well

            M 1 Reply Last reply 29 Sept 2019, 09:32
            0
            • T tham
              29 Sept 2019, 09:03

              @mrjj Open them by yourself is the fastest way, simply put, sizes do not scaled well

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 29 Sept 2019, 09:32 last edited by
              #6

              @tham
              Ok. i dont have a setup to easy run an app on a phone but i guess
              the interface is too big?
              Is this on android or iOS or both ?

              T 1 Reply Last reply 29 Sept 2019, 12:50
              1
              • M mrjj
                29 Sept 2019, 09:32

                @tham
                Ok. i dont have a setup to easy run an app on a phone but i guess
                the interface is too big?
                Is this on android or iOS or both ?

                T Offline
                T Offline
                tham
                wrote on 29 Sept 2019, 12:50 last edited by tham
                #7

                @mrjj Only test on android(I don't have ios and do not intent to buy one, their phone are too expensive compare with another high end phones today).

                You do not need to set anythings up, just need to open the links by your browser :)

                https://www.qt.io/qt-examples-for-webassembly

                Click on any examples with start demo, then you will see what do I mean. This technique really is awesome, but it is still in early day I think, need more polish. Appreciate for anyone who contribute to this project

                J 1 Reply Last reply 29 Sept 2019, 15:24
                0
                • T tham
                  29 Sept 2019, 12:50

                  @mrjj Only test on android(I don't have ios and do not intent to buy one, their phone are too expensive compare with another high end phones today).

                  You do not need to set anythings up, just need to open the links by your browser :)

                  https://www.qt.io/qt-examples-for-webassembly

                  Click on any examples with start demo, then you will see what do I mean. This technique really is awesome, but it is still in early day I think, need more polish. Appreciate for anyone who contribute to this project

                  J Offline
                  J Offline
                  JonB
                  wrote on 29 Sept 2019, 15:24 last edited by
                  #8

                  @tham
                  We are still in early days for Qt for WebAssembly, there will be changes to come.

                  T 1 Reply Last reply 29 Sept 2019, 18:00
                  1
                  • J JonB
                    29 Sept 2019, 15:24

                    @tham
                    We are still in early days for Qt for WebAssembly, there will be changes to come.

                    T Offline
                    T Offline
                    tham
                    wrote on 29 Sept 2019, 18:00 last edited by
                    #9

                    @JonB Nice to hear that, may you tell us any updates in Qt5.14? I do not see anything on the list yet, thanks.

                    J 1 Reply Last reply 29 Sept 2019, 19:53
                    0
                    • M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 29 Sept 2019, 18:16 last edited by
                      #10

                      Hi
                      They didn't load on my (admiddaly old) Samsung 5.
                      Just says "compiling"

                      T 1 Reply Last reply 30 Sept 2019, 04:16
                      0
                      • T tham
                        29 Sept 2019, 18:00

                        @JonB Nice to hear that, may you tell us any updates in Qt5.14? I do not see anything on the list yet, thanks.

                        J Offline
                        J Offline
                        JonB
                        wrote on 29 Sept 2019, 19:53 last edited by
                        #11

                        @tham
                        I'm no expert, but from what I read the WASM stuff is considered still a bit "incomplete" even though it has been released and is expected to get on-going attention. It's an area I believe Qt is keen to improve in, as it may have a bright future.

                        1 Reply Last reply
                        1
                        • M mrjj
                          29 Sept 2019, 18:16

                          Hi
                          They didn't load on my (admiddaly old) Samsung 5.
                          Just says "compiling"

                          T Offline
                          T Offline
                          tham
                          wrote on 30 Sept 2019, 04:16 last edited by tham
                          #12

                          @mrjj Maybe download firefox could help you. In case this don't work either, I post links of my screen shot at here.

                          https://drive.google.com/open?id=1XcxG6XDj8Ita8EkKIuqJvR_dC4awQEY-
                          https://drive.google.com/open?id=1j5TazFHnuI37jTUMHbZVeJ-p4g30wVlR
                          https://drive.google.com/open?id=1bhoYbXaI9Wqc_PJL4mDx7KCx0DS1GrxS

                          I developed web apps by Qt too, not as bad as the screen shot, but they do not looks good either

                          1 Reply Last reply
                          1
                          • L Offline
                            L Offline
                            lorn.potter
                            wrote on 2 Oct 2019, 20:37 last edited by
                            #13

                            Those official examples show the app in a frame around other html. If you build examples yourself, the apps will run full 'screen' in the browser.

                            Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
                            Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

                            T 1 Reply Last reply 3 Oct 2019, 07:02
                            1
                            • L lorn.potter
                              2 Oct 2019, 20:37

                              Those official examples show the app in a frame around other html. If you build examples yourself, the apps will run full 'screen' in the browser.

                              T Offline
                              T Offline
                              tham
                              wrote on 3 Oct 2019, 07:02 last edited by tham 10 Mar 2019, 07:16
                              #14

                              @lorn-potter Thanks, tried, can show the widgets but the ui components are too small, any suggestions to solve this issue?

                              By the way, do you know any way to make the QLineEdit accept non ascii input?This question is related to QTBUG-78826.

                              I load the fonts already, can paste the words from text file to QLineEdit or print the non ascii characters by program, but the QLineEdit cannot type the non ascii characters on it directly.

                                  QFile ifile(":/fonts/wqy_compress");
                                  if(ifile.open(QIODevice::ReadOnly)){
                                      auto const font_id = QFontDatabase::addApplicationFontFromData(qUncompress(ifile.readAll()));
                                      qDebug()<<__func__<<"font id:"<<font_id;
                              
                                      font_family_ = QFontDatabase::applicationFontFamilies(font_id).at(0);
                                  }
                              
                                
                                     QFont const monospace(font_family_ );
                                     ui->lineEditNewChar->setFont(monospace);
                              

                              Any suggestions?Thanks

                              1 Reply Last reply
                              0

                              10/14

                              29 Sept 2019, 18:16

                              • Login

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