Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to write a python plugin for QGis. I'd like to debug some DB queries and I need a way to display the result.

I thought about using a popup to display it, but I don't know how to show a popup from inside a python plugin.

Can anyone suggest me how to do that?

share|improve this question
related: How to setup a debugger for QGIS Plugin development?… – underdark Jun 13 at 19:23
up vote 7 down vote accepted

Finally I solved this way:

def printMsg(self,msg):

I don't know if it's the best way to go, but it seems to work fine.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.