Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtDropbox - download file

QtDropbox - download file

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maniek1313
    wrote on last edited by Maniek1313
    #1

    Hi, I have a problem with Qt Dropbox, but they do not know how to download the file. The connection of Dropbox application is successful. Namely I create a variable QDropboxFile, to which convey 3 arguments (file name, instance QDropbox, and this). Then I wanted to check the file size, but still shows 0 bytes.

    Documentations QtDropbox

    The following code, which makes the problem :

    void speccy_win::dropboxCase1(){
    
    QDropbox dropbox(APP_KEY, APP_SECRET); connectDropbox(&dropbox, QDropbox::Plaintext);
    
    QDropboxAccount accInf = dropbox.requestAccountInfoAndWait();
    qDebug() << "Account : " << accInf.displayName();
    
    if(dropbox.error() == QDropbox::NoError)
        qDebug() << "Brak błędów";
    
    accountInformation(&dropbox);
    fileInformation(&dropbox);
    
    
    QDropboxFile *file = new QDropboxFile("/test.txt", &dropbox, this);
    
    if(!file->open(QIODevice::ReadWrite))
        qCritical() << "QDropboxFile open failed !!! : " << file->errorString();
    
    QDropboxAccount testAccount = file->api()->requestAccountInfoAndWait();
    
    qDebug() << "testAccount : " << testAccount.displayName();
    
    qDebug() << "filename() : " << file->filename();
    
    QDropboxFileInfo *fileInfo = new QDropboxFileInfo(file->metadata());
    qDebug() << fileInfo->bytes();
    
    file->close();
    
    return; }
    
    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,

      QtDropBox is an independent project and is not part of the official Qt packages.
      I suggest to contact the project maintainer (via GitHub or direct mail)

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved