> What do you need the socket for?
I need to limit its read buffer size.
> You can probably access the socket using QObject::findChild().
First I have to get to QFtpPrivate from the subclass. Private d_func() returns it.
But even if it make it protected/public I get an error when accessing it:
uftp.cpp: In member function ‘void UFtp::setReadBufferSize(qint64)’:
uftp.cpp:45:3: error: invalid use of incomplete type ‘struct QFtpPrivate’
/usr/include/qt4/QtNetwork/qftp.h:57:7: error: forward declaration of ‘struct QFtpPrivate’
uftp.cpp: In member function ‘void UFtp::setReadBufferSize(qint64)’:
uftp.cpp:45:3: error: invalid use of incomplete type ‘struct QFtpPrivate’
/usr/include/qt4/QtNetwork/qftp.h:57:7: error: forward declaration of ‘struct QFtpPrivate’
To copy to clipboard, switch view to plain text mode
Bookmarks