title: qt transfer a file from local to a samba shared
body: <p>I'm newly hired junior programmer, and I'm new in c++ world with no background in linux or networks. We are using gcc 4.7.3 and ubuntu 11.04. I need to know how to transfer file from my local desktop (example <code>/home/username/desktop</code>) to a samba (example <code>smb://192.168.0.54/folder</code> or <code>smb://username/folder</code>). First, I'm trying to do this (if I can access it)</p>
  
  <pre><code>  QDir dir("smb://192.168.0.54/htdocs/");
    if (!dir.exists()) {
        QMessageBox::about(NULL, "DIR", "dir does not exists");
    }
    else
        QMessageBox::about(NULL, "DIR", "dir exists");
  </code></pre>
  
  <p>and the result is "does not exist".  Can someone show me how to transfer files from my local desktop to an <code>smb://</code>?</p>