Yes, the first one is the distribution dir if you build qt5 from source. The second is where homebrew unpacks the source.