can someone help me with initial developing on qgis plugin that displays postgres data table on a
I can connect to database using psycopg2 or using QtSql(tested inside QGIS console)
Using idle i can't because it does not load the QPSQL drivers...although i have them on my qt binary install.
I'm using pluginbuilder for initial setup, but i don't know how to get a reference to my tablewidget, to pass data from sql query.
Using IDLE i can draw a form with a tablewidget that is filled with data from sel query.
I already read this question :(but still have doubts...)
I need help putting things together.
Thanks for reading.
In here if i run from terminal i can fill a
qtablewidget with sql data:
I want to draw a widget like this inside a qgisplugin.
My Plugin(TestPlugin) was buit with plugin builder, asnd inside my
ui_testplugin.ui, i have a
QtTableWidget draw with
QtDesigner and compiled using a generated makefile.
I know that i have to insert logic inside
testplugin.py, inside run block, but i don't know to get a reference to
Hope this makes it clear. Thanks.