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.4k 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.
  • mrjjM mrjj

    Hi
    In what way look bad ?

    thamT Offline
    thamT Offline
    tham
    wrote on last edited by
    #5

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

    mrjjM 1 Reply Last reply
    0
    • thamT tham

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

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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 ?

      thamT 1 Reply Last reply
      1
      • mrjjM mrjj

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

        thamT Offline
        thamT Offline
        tham
        wrote on 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

        JonBJ 1 Reply Last reply
        0
        • thamT tham

          @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

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #8

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

          thamT 1 Reply Last reply
          1
          • JonBJ JonB

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

            thamT Offline
            thamT Offline
            tham
            wrote on 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.

            JonBJ 1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #10

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

              thamT 1 Reply Last reply
              0
              • thamT tham

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

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on 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
                • mrjjM mrjj

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

                  thamT Offline
                  thamT Offline
                  tham
                  wrote on 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
                  • lorn.potterL Offline
                    lorn.potterL Offline
                    lorn.potter
                    wrote on 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

                    thamT 1 Reply Last reply
                    1
                    • lorn.potterL lorn.potter

                      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.

                      thamT Offline
                      thamT Offline
                      tham
                      wrote on last edited by tham
                      #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

                      • Login

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