where ? i visit universities websites and search for thesis ? then i apply for visa if accepted ?
Step 1: Find a supervisor willing to accept you as a student and has funding available to pay you. This is the most difficult step. Professors get hundreds of applications per year - make sure yours stands out by demonstrating that you know their research area, have research experience and can write well enough that you can learn to write at an academic level.
Step 2: apply to the faculty of graduate studies at the university where your supervisor has agreed to accept you.
Step 3: apply for a study permit (and csq? I don't know Quebec's system)