Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

464 Topics 1.8k Posts
  • The app developed by Qt for wasm do not looks good on mobile browser

    Moved Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    thamT
    @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
  • Issue with running configure.bat (Windows)

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    Pablo J. RoginaP
    @DragonOsman said in Issue with running configure.bat (Windows): Should I close this one and open a new thread for these questions or is this thread fine? Yes please, so other users can expect to find answers to the issue based on topic title. If not, the solution(s) for the new issue will be embedded within the posts.
  • 0 Votes
    4 Posts
    865 Views
    thamT
    @mrjj Thanks for your helps, post a bug at JIRA, 78825
  • Qt for WebAssembly on Windows 10

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    K
    Hi, first of all: Are you using a linux subsystem? Because you need to use Linux its not possible on windows. The secon thing is that the Qt mkspecs need to be specified in the compilers sub. In em and em++ both need to have "wasm-emscripten" as Qt mkspecs. The third thing is that actually it is still not possible to to build via Qt Creator. You need to use qmake and make. After running them the project is build and you are ready to go with a webserver like the simple python one. From there you just open the .html. If you need more help just message me, had some issues too as right now there is still the same warning on my linux system as you have with QtVersions. I'll figure that one out soon didn't deal with it until now.