condo4 / qtssh Goto Github PK
View Code? Open in Web Editor NEWQt Library Wrapper to libssh2
License: BSD 3-Clause "New" or "Revised" License
Qt Library Wrapper to libssh2
License: BSD 3-Clause "New" or "Revised" License
today when i try to build all the project of QtSsh the whole project, i meet the problem like this:
/home/hdh/workspace/QtSsh/examples/filesystem_model.cpp: In member function 'void MainWindow::onHostEdited()':
/home/hdh/workspace/QtSsh/examples/filesystem_model.cpp:35:62: error: no matching function for call to 'SshClient::SshClient(QTreeView*&)'
SshClient client = new SshClient(ui->browser);
^
In file included from /home/hdh/workspace/QtSsh/examples/filesystem_model.cpp:4:0:
/home/hdh/workspace/QtSsh/qtssh/../qtssh/sshclient.h:76:5: note: candidate: SshClient::SshClient(QString, QObject)
SshClient(QString name = "noname", QObject * parent = NULL);
^
/home/hdh/workspace/QtSsh/qtssh/../qtssh/sshclient.h:76:5: note: no known conversion for argument 1 from 'QTreeView*' to 'QString'
examples/CMakeFiles/filesystem_model.dir/build.make:62: recipe for target 'examples/CMakeFiles/filesystem_model.dir/filesystem_model.cpp.o' failed
it seems like the function of SshClient() has used a unknow conversion of QTree. Or it just because the version of qt? Why there appeared a QTreeView*?
Appreciate the support by the developers! Thank you guys very much.
It sounds libssh2 doesn't support ed25519, is thart correct?
D:\WinUsers\mr-lb\Documents\QTwork\QtSsh-master\qtssh\sshclient.cpp:285: error: 'QOverload' was not declared in this scope
connect(&_socket, QOverloadQAbstractSocket::SocketError::of(&QAbstractSocket::error), [this, &wait, &failed](QAbstractSocket::SocketError err){
^
If a member function is also const-overloaded qConstOverload and qNonConstOverload need to be used.
qOverload() requires C++14 enabled. In C++11-only code, the helper classes QOverload, QConstOverload, and QNonConstOverload can be used directly:
... QOverload<>::of(&Foo::overloadedFunction)
... QOverload<int, QString>::of(&Foo::overloadedFunction)
This function was introduced in Qt 5.7.
.
how to use "SshScpSend" please
I include linssh2 and this pri in my project,but i don't know how to set up.How can i launch a sftp connnect and upload files?Any example?
With a GPL license it is not possible to include this in non gpl software. Is this intentional or even required because it is based on a GPL impl (e.g. https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/libs/ssh) ?
CMake Error at qtssh/CMakeLists.txt:77 (target_link_libraries):
Target "QtSsh" links to:
Qt6::Network
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Hello. Thank you for publishing the library.
I have the next issue:
When I'm trying to connect to unavailable host the error QAbstractSocket::NetworkError is happening
void SshClient::_tcperror(QAbstractSocket::SocketError err)
{
if(err == QAbstractSocket::ConnectionRefusedError)
{
_errorcode = LIBSSH2_ERROR_BAD_SOCKET;
qDebug() << "ERROR : SshClient : ConnectionRefusedError";
emit _connectionTerminate();
}
else
{
qDebug() << "ERROR : SshClient : failed to connect session tcp socket, err=" << err;
}
}
in this slot only
qDebug() << "ERROR : SshClient : failed to connect session tcp socket, err=" << err;
is executed so I'm not receiving any notification about connection error.
Currently I just moved
emit _connectionTerminate();
outside the condition to call it anyway but is it the right solution?
Please add support for qt4.
thanks,
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.