Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23160

[wasm] qtcreator evaluate defined(Q_OS_WASM) as false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.15.0-beta1
    • Qt Creator 4.11.0-beta1
    • None
    • Ubuntu 18.04
      qt-5.14 (latest from git)
      qtcreator 4.11 beta1
    • WebAssembly
    • b057ea1ab81cbb74b05e763afa61974920886810 (qt-creator/qt-creator/master)

    Description

          I downloaded qtcreator-4.11 beta1 and enable the webassembly plugin, now I can write qt-wasm project with qtcreator, it's really helpful.

          The only problem I have encountered is that even if I switch to qt-wasm build kit for my project, the editor will gray my wasm specific code for me. The editor will evaluate defined(Q_OS_WASM) as false and wrongly evaluate defined(Q_OS_LINUX) as true, thus it will show linux specific code as normal.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            portale Alessandro Portale
            jianliang79 liang jian
            Tino Pyssysalo Tino Pyssysalo
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes