QPastebinClient is cross-platform and works on all platforms supported by Qt, even mobile platforms like Symbian and Maemo. Usage is very simple:
QPastebinClient *pastebin = new QPastebinClient(this); connect(pastebin, SIGNAL(finished(QString)), this, SLOT(setPastebinUrl(QString))); connect(pastebin, SIGNAL(failed(QString)), this, SLOT(showError(QString))); pastebin->paste("Some worthy code");
QPastebinClient is free/open source software and licensed under LGPL 2.1 or later.
Check out QPastebinClient project page to get the sources. I will appreciate any feedback you have.
Update: Moved repository to Gitorious.