[Qgis-developer] Users Manual Form annotations challenge

J. Gustavo Rocha jgr at di.uminho.pt
Fri May 16 13:28:54 PDT 2014

Hi all, olá Alexandre,

Probably you found the bug that Matthias mentioned, which is still 
opened. On my QGIS 2.2, on Ubuntu 12.04 your example crashes QGIS.

But writing a few lines of python, your form loads. So, it might (I 
really don't know!) be a QGIS problem, although it works fine on other 

Opening your form with just vanilla python+qt:

import sys
from PyQt4 import QtCore, QtGui, uic
form_class = uic.loadUiType("annotations_form.ui")[0]
class MyWindowClass(QtGui.QMainWindow, form_class):
     def __init__(self, parent=None):
         QtGui.QMainWindow.__init__(self, parent)
app = QtGui.QApplication(sys.argv)
myWindow = MyWindowClass(None)

The form opens: https://dl.dropboxusercontent.com/u/5489125/Dialog_013.png

I hate to say, but for now, it is better to prepare the documentation 
and screen captures on another platform :-(


J. Gustavo

Em 16-05-2014 20:03, Matthias Kuhn escreveu:
> Hi Alexandre,
> are you by any chance encountering this bug?
> http://hub.qgis.org/issues/8760
> -- Matthias
> On 13.05.2014 00:29, Alexandre Neto wrote:
>> I'm trying to update the Users Manual Screenshot for form annotations.
>> In my case, QGIS is crashing when I try to use a form. Can anyone
>> please check if it's working or if there is something wrong with my
>> form [0]?
>> Also, there is a broken link [1] in the Users Manual in this section
>> that would explain how to crate a form to use with form annotation.
>> Can we ressuscitate the link? I used Tim Sutton video to create my form.
>> Thanks!
>> Alexandre Neto
>> [2] https://www.dropbox.com/s/4a3mqni2becruh9/annotations_form.ui
>> [1] http://blog.qgis.org/node/143
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

J. Gustavo
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor

"I would love to change the world, but they won't give me the source 
code" -- Unknown Geek

More information about the Qgis-developer mailing list