I've managed to solve the problem. I've included:
Qt Code:
  1. import QtQuick.Controls 2.3
To copy to clipboard, switch view to plain text mode 
instead of
Qt Code:
  1. import QtQuick.Controls 1.4
To copy to clipboard, switch view to plain text mode 
It works now, however, can someone explain me these import "versions". Why higher version does not support MenuItem and lower does?