homebrew doesn't recognize --devel flag
For anyone looking for the solution, it is described here.

brew install dpo/openblas/octave --with-qt --devel


--with-java gives a warning that legacy JDK6 is required, but there is apparently a fix for that here if you want to install it.