be miles away idiom mainly UK      
 心不在焉
to not be conscious of what is happening around you because you are thinking about something else
  You could tell by the expression on her face that she was miles away, thinking about home. 从她的表情你就可以看出她心不在焉,在想家呢。