Results 1 to 12 of 12

Thread: QFtp or QNetworkAccessManager, what's the trend?

  1. #1
    Join Date
    Aug 2013
    Posts
    32
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QFtp or QNetworkAccessManager, what's the trend?

    Hello.

    I have been googling but it's a bit confusing.

    I've been developing using Qt4 for some months now. QFtp is nice and easy to handle, but it seems it's being deprecated in 5.x. But, the fact is that 5.x doesn't have any way that I know of of handling anything that's not put()'ing or get()'ing files. I can't even get a file listing, it seems (or maybe I overlooked something...).

    So, what's the trend regarding this? Has anything happened in 5.2 that I am not aware of or should I just stick to 4.x until all this nonsense is sorted in one way or another?

    How do you, people, handle ftp in 5.x? What would you use to write, let's say, a full blown ftp client in Qt 5.x using only the standard stuff that comes in the official qt bundle?

    I know QFtp is being maintained as an external module, but that feels a bit awkward, doesn't it?

    Thanks for any idea or tip you can share.

    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    If you need the full capabilities of QFtp, then use QFtp

    Cheers,
    _

  3. #3
    Join Date
    Aug 2013
    Posts
    32
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    Thanks for the comment.

    I was hopping that, by this time, there would be some replacement for QFtp in the stock qt5 package, but I see that's not true. So, for me, qt5 isn't a viable option, with all that implies.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    Why would there be a replacement if QFtp is available in the base Qt package?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Aug 2013
    Posts
    32
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    Not in qt5, as far as I know, and as far as this says: http://qt-project.org/doc/qt-5/classes.html

    Admittedly, I didn't try qt5 myself, mostly because of this, so I could be wrong. But I doubt it, since this is a recurrent topic all around the internet. QNetworkAccessManager can't substitute QFtp, and qt5 has no QFtp, officially.

    Yes, I know I can install it from gitorius or whatever, but that's out of what I am willing to do for several reasons that are not so relevant for the topic at hand.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    Quote Originally Posted by i92guboj View Post
    Not in qt5, as far as I know, and as far as this says: http://qt-project.org/doc/qt-5/classes.html
    It's a separate module but does it matter?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Aug 2013
    Posts
    32
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    I guess it depends on who you ask to.

    I see it this way: QFtp is nice, integrates with Qt signal/slot stuff, it's easy to manage, but I have no idea how long it will be alive. Libcurl has been alive for ages, and it's not gonna die anytime soon, plus I also have some experience with it. There are several other alternatives with similar capabilities.

    It might be harder to write it, but, unlike with QFtp, I am 100% sure that next year I can continue using it.

    Now, if you were gonna port a application to Qt5, maybe to adapt it also for mobile platforms and several OSes in the future, would you be using a discontinued product for a vital part of it?

    Of course, my impressions about the current state of QFtp as an outsider could very well be wrong, but I would feel much better if it was part of the official Qt distribution. That's the reason I am asking.

    Thanks.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    Quote Originally Posted by i92guboj View Post
    I see it this way: QFtp is nice, integrates with Qt signal/slot stuff, it's easy to manage, but I have no idea how long it will be alive.
    It is open-source, it will always be alive.

    It might be harder to write it, but, unlike with QFtp, I am 100% sure that next year I can continue using it.
    The probability of it vanishing is the same as probability of any other component available in the Internet to vanish. The module has been extracted from base Qt package because it is not actively maintained anymore by the core Qt team.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Aug 2013
    Posts
    32
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    Quote Originally Posted by wysota View Post
    It is open-source, it will always be alive.
    So I hope. So I hope. But, things go wrong sometimes. I see projects be born, die, fork, merge and explode everyday. No one can predict that. All software I use since 15 years ago is open source, so I know for good. In the Linux world I also see incomplete, not-ready-for-production software being forced down the throat of the users by the big ones in detriment of products that have been being used for years without important issues, I could name concrete cases, some of them happening right now, but that's out of the scope of the thread as well.

    The probability of it vanishing is the same as probability of any other component available in the Internet to vanish. The module has been extracted from base Qt package because it is not actively maintained anymore by the core Qt team.
    As long as the qt foundations it relies upon don't get deprecated as well. You know, sometimes repositories bit-rot. That would turn QFtp in something like the Trinity Desktop Environment, whose only developer ended up "maintaining" not only the KDE3 base, but also Qt3 as a whole. I just want to make sure I won't end in a similar suicidal situation :lol: :P

    You are probably in a better position than I am to speak about that, though, since I have no idea about how QFtp is implemented or which Qt parts it relies on.

    Like with everything in life I guess I will have to take my bet and fix it afterwards if it breaks.

    Thank you, everyone, for all the ideas

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    Quote Originally Posted by i92guboj View Post
    As long as the qt foundations it relies upon don't get deprecated as well.
    Even if it does, Qt will not go down with it. And if it did, then QFtp being unavailable would be the least of your problems, I think.

    You know, sometimes repositories bit-rot.
    So make a copy of the repository, burn it on a disk and distribute the code with your software.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Aug 2013
    Posts
    32
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    Maybe I wasn't clear. I don'tthink that Qt will dice nytime soon. Its lifespan might even sus pase that of the mankind

    I rather fear that some change un TVE Qt internals might break QFtp beyond repair. That's where I was going with the word 'bit-rot' as well.

    Indeed, as you say, if Qt dissapears then I'll hace some other questions to worry about :lol:

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QFtp or QNetworkAccessManager, what's the trend?

    First of all QFtp is not developed anymore so it is highly unlikely it will get broken before Qt 6.0. Second of all the repository contains all the development history so you can always go back in time and get an earlier release.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QFtp not connecting?
    By budda in forum Newbie
    Replies: 1
    Last Post: 9th August 2011, 19:13
  2. Replies: 6
    Last Post: 13th May 2010, 13:54
  3. QFTP in LINUX
    By jsmith in forum Qt Programming
    Replies: 1
    Last Post: 2nd December 2009, 07:00
  4. QFtp over QHttp
    By parusri in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2009, 19:16
  5. Replies: 0
    Last Post: 23rd September 2007, 11:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.