dvi file is not created in texmaker
You have to run latex
instead of pdflatex
. Change it near the first blue arrow (below the Help menu) or use the Tools menu, as shown in figure below. Also, as noted by @Torbjørn T., you can use the keyboard shortcuts.