In reply to Giordy.

Giordy's tip works on macOS Sierra.
At the end used this command to switch to the qt version.
brew switch octave HEAD-2706adccf4e9_7