QEMU is included in the OpenBSD ports tree. To install, simply set PKG_PATH appropriately and

# pkg_add -i qemu

To build from source, make sure the appropriate ports tree is installed and

# cd /usr/ports/emulators/qemu && make install