Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions devel/701.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# [701] 确保 WASM 构建下的 QtPlugin 的加载
## What
添加了 Q_IMPORT_PLUGIN 宏,以确保 WASM 构建下的 QtPlugin 的加载

## Why
否则 WASM 构建由于找不到 QtPlugin 无法启动
4 changes: 4 additions & 0 deletions src/Mogan/Research/research.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ static QTMCoreApplication* qtmcoreapp= NULL;
bool show_startup_login_dialog ();
#endif

#ifdef Q_OS_WASM
#include <QtPlugin>
Q_IMPORT_PLUGIN (QWasmIntegrationPlugin)
#endif
/******************************************************************************
* Main program
******************************************************************************/
Expand Down
Loading