dd-l / lproxy-local-android Goto Github PK
View Code? Open in Web Editor NEWlproxy-local-android 目前是试验性质的项目,仅支持部分 Android 机型
License: MIT License
lproxy-local-android 目前是试验性质的项目,仅支持部分 Android 机型
License: MIT License
相关链接:
好像是在说 “QWebChannel cannot emit signals from SIGNALS in different Thread”
local/log.cpp
:
sdata_t lproxy::mobile::log::output_format(const std::shared_ptr<LogVal>& val) {
std::ostringstream oss;
oss << log_tools::time2string(val->now)
<< " ["
//<< std::right << std::setw(5)
<< val->log_type
<< "] " << val->msg << "\t[tid:"
//<< val->tid << "] "
<< val->tid << "]"
//<< lproxy::log::basename(val->file_name)
//<< ":" << val->line_num
//<< ' ' << val->func_name
//<< val->extra
<< std::endl;
return oss.str();
/*
CommunObject* obj = CommunObject::get_instance();
if (obj) {
// 这里是在日志输出线程中, 而 sendlog 函数中有 emit 发信号给 QWebChannel。日志输出线程是有主线程启动的。
obj->sendlog(oss.str());
}
return "";
*/
} // function lproxy::log::output_format
这好像是个 Qt 中 QWebChannel 的 bug, 暂时注掉了,遗留 (Qt 5.5.1)
注释掉的后果是,html 端无法更新 日志信息,还好只是 Android,日志可有可无。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.