Regarding if you can stay with your boyfriend, of course. A visit visa is legal and nothing is wrong with that.

There's no strict dress code here as long as it is decent.

Welcome here in Qatar.