twainui增加接口防止界面阻塞

This commit is contained in:
luoliangyi 2023-08-25 16:57:03 +08:00
parent 4f19722990
commit 51332b6c30
3 changed files with 8 additions and 0 deletions

View File

@ -13,3 +13,4 @@ show_messagebox_ui
show_twain_srclist_ui
show_srclist_ui
close_ui
pump_ui_message

View File

@ -326,3 +326,8 @@ int close_ui(int which)
return 0;
}
void pump_ui_message(void* reserved)
{
QApplication::processEvents();
}

View File

@ -126,3 +126,5 @@ enum which_ui
UI_UNLOAD_MODULE = -1, // this command is used to notify the module will be unloaded
};
HGEXPORT int close_ui(int which);
HGEXPORT void pump_ui_message(void* reserved);