I've only seen this happen to people on student visas that permit little or no working hours.
You would need to speak Portuguese, and prove an effective tie to portugal, for example participating in Portuguese cultural activities, groups or organizations