mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2025-10-24 16:10:21 +02:00
add createTcpSocket
This commit is contained in:
parent
9b17fe144d
commit
92f23fe1ff
3 changed files with 29 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ int LuaEngineIO::eIOWrite(lua_State *L_p)
|
|||
void *pointer = getPointer(L_p, 1);
|
||||
if (pointer != NULL) {
|
||||
if (((QObject*)pointer)->inherits("QIODevice")) {
|
||||
((QIODevice*)pointer)->write(getVariant(L_p, 2).toByteArray());
|
||||
((QIODevice*)pointer)->write(getVariant(L_p, 2).toString().toUtf8());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue