Git Product home page Git Product logo

qtssh's Issues

the problem of SshClient

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.

qt5.6 comipled error

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.

cmake error!

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.

No signal is emitted while trying to connect to unavailable host

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.