E-Stick can be rotated 45 degrees from above the panel. 1Up had a thread about it years ago.
However, for Q-bert, generally you can do fine with an 8-way - particularly one with a square or octagon restrictor/actuator (Happ Comp, Omni-Stick, Suzo 500, Prodigy, Euro-Stick, etc.).
Make sure you go into the MAME inputs and map each direction to "Up-Right NOT Up NOT Right" etc.