Skip to content

Instantly share code, notes, and snippets.

QDomDocument doc;
QDomProcessingInstruction process = doc.createProcessingInstruction("xml", "version=\"1.0\"");
doc.appendChild(process);
QDomElement stream = doc.createElementNS("http://etherx.jabber.org/streams", "stream");
stream.setPrefix("stream");
stream.setAttribute("xmlns", "jabber:client");
stream.setAttribute("to", "amessage.de");
doc.appendChild(stream);
^([A-Z0-9._%+-]+)@([A-Z0-9.-]+\.[A-Z]{2,6})(\/([A-Z0-9._%+-]+))?$
#include <iostream>
using namespace std;
class J
{
public:
J() { cout << "J::J()" << endl; }
J(const J&) { cout << "J::J(&J)" << endl; }
J& operator =(const J&) { cout << "J::operator=()" << endl; }
#define IDI_ICON1 101
#include "resource.h"
IDI_ICON1 ICON "main.ico"