this has nothing to do with Qt.

qualify your open call:
Qt Code:
  1. ::open(...)
  2. std::open(...)
To copy to clipboard, switch view to plain text mode 
depending on what headers you include.