Re: [Qgis-developer] QGIS custom widgets with python plugins

2014-11-25 Thread Denis Rouzaud
Hi Stefan, To properly compile the UI file using pyuic4, you need to have the uic widget plugin installed. This is the file qgis_customwidgets.py that should be located in /usr/lib/python2.7/dist-packages/PyQt4/uic/widget-plugins/ This file can be either installed by the package

Re: [Qgis-developer] QGIS custom widgets with python plugins

2014-11-25 Thread Arnaud Morvan
If you install QGIS to custom path, you should set some environment variables before calling pyuic4 exemple: export QGIS_PREFIX_PATH=~/apps/qgis-master export LD_LIBRARY_PATH=$QGIS_PREFIX_PATH/lib export PYTHONPATH=$QGIS_PREFIX_PATH/share/qgis/python/:$PYTHONPATH Personnally, I've added one

[Qgis-developer] Building QGIS 2.6 from sources failed

2014-11-25 Thread Nejia
Hi, I'm trying to built QGIS 2.6 from sources ; qgis_app failed: 235moc: Cannot create C:/DEV/QGIS_Sources/QGIS-release-2_6/ms-windows/osgeo4w/build-x86/src/app/gp s/qwtpolar-0.1/moc_qwt_polar_panner.cxx 235Project : error PRJ0019: A tool returned an error code from Generating

[Qgis-developer] (no subject)

2014-11-25 Thread Theuns Heydenrych
Hi In QGIS versions before 2.6 , I could right click and show a custom popup menu from the QgsMapCanvas, but not anymore. Its like something is consuming the right click event on the QgsMapCanvas. Do anyone know anything about this? How can I get a right click event from the QgsMapCanvas again? I

[Qgis-developer] Right click event from QgsMapCanvas

2014-11-25 Thread Theuns Heydenrych
First I would like to apologise for sending a mail without a subject, had some finger trouble there, sorry. In QGIS versions before 2.6 , I could right click and show a custom popup menu from the QgsMapCanvas, but not anymore. Its like something is consuming the right click event on the

Re: [Qgis-developer] User-contributed scripts/models for Processing

2014-11-25 Thread kimaidou
Hi Alexander, As an author of some scripts, I think this feature is a great opportunities to easily share useful snippets. I am not sure though we made enough publicity around it. I fear only power users will have the idea to open the branches of processing toolbox and discover there is a Scripts

Re: [Qgis-developer] (no subject)

2014-11-25 Thread Theuns Heydenrych
Problem solved. I connected to the parent widget's customContextMenuRequested signal, instead of the QgsMapCanvas's customContextMenuRequested signal. On Tue, Nov 25, 2014 at 11:58 AM, Theuns Heydenrych theunsheydenr...@gmail.com wrote: Hi In QGIS versions before 2.6 , I could right click and

Re: [Qgis-developer] Right click event from QgsMapCanvas

2014-11-25 Thread theunsgis
Problem solved. I connected to the parent widget's customContextMenuRequested signal, instead of the QgsMapCanvas's customContextMenuRequested signal. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Right-click-event-from-QgsMapCanvas-tp5174732p5174783.html Sent from the

[Qgis-developer] Core Python plugins and their dependencies

2014-11-25 Thread Alexander Bruy
Hi all, do we have any policy about dependencies of core Python plugins? Current situation is a bit messy and confusing. DB Manager depends on psycopg2 and pyspatialite, but we does not ship this packages into QGIS source tree. Same for Processing, it contains several algorithms that require

Re: [Qgis-developer] Core Python plugins and their dependencies

2014-11-25 Thread Jürgen E . Fischer
Hi Alex, On Tue, 25. Nov 2014 at 15:06:30 +0200, Alexander Bruy wrote: DB Manager depends on psycopg2 and pyspatialite, but we does not ship this packages into QGIS source tree. Same for Processing, it contains several algorithms that require matplotlib and we does not bundle matplotlib in

Re: [Qgis-developer] QGIS 2.6 compilation on Windows

2014-11-25 Thread Martin Landa
Hi, 2014-11-24 16:36 GMT+01:00 Jürgen E. j...@norbit.de: flex NEWS says Support for reentrant C scanners has been added for 2.5.6 I use flex from cygwin on Windows. thanks, it solved my problem! Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa

Re: [Qgis-developer] Core Python plugins and their dependencies

2014-11-25 Thread Tom Kralidis
On Tue, 25 Nov 2014, Jürgen E. wrote: Date: Tue, 25 Nov 2014 14:45:55 +0100 From: Jürgen E. j...@norbit.de Reply-To: qgis-developer@lists.osgeo.org To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Core Python plugins and their dependencies Hi Alex, On Tue, 25. Nov 2014 at

[Qgis-developer] pb with change attribute value in QGIS 2.6

2014-11-25 Thread Nejia
Hi, I have a tool that allow to edit attribute of features (only one attribute): 1- I select the feature by click on it: vectorLayer-getFeatures( QgsFeatureRequest().setFilterRect( tSelectRect ).setFlags( QgsFeatureRequest::ExactIntersect )) 2- Modify the attribute 3-

Re: [Qgis-developer] Core Python plugins and their dependencies

2014-11-25 Thread Alexander Bruy
Hi Tom, yes, I know that all this packages required by MetaSearch. But as Jürgen said all this packages available from package manager in most Linux distros and in OSGeo4W. 2014-11-25 16:14 GMT+02:00 Tom Kralidis tomkrali...@gmail.com: On Tue, 25 Nov 2014, Jürgen E. wrote: Date: Tue, 25

Re: [Qgis-developer] Core Python plugins and their dependencies

2014-11-25 Thread Alexander Bruy
Hi Jürgen, thanks for you reply. 2014-11-25 15:45 GMT+02:00 Jürgen E. j...@norbit.de: Well, I don't have a good idea what thise clear policy could be. I'd say there should be a compelling reason why third party dependencies are included. Ok, got your point. Sounds fine for me.

Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows

2014-11-25 Thread eliu1234
Thanks for the link. I have checked out the C++ code example on Github before. But it is just kinda frustrating to see that the examples are mostly from 5 years ago and so much have changed. Also, for the add_raster_layer example in particular, the github does not even have all the files needed

[Qgis-developer] QgsMapRenderer and QgsMapSettings relation

2014-11-25 Thread Sandro Santilli
I've found code dealing with aspect-ratio adjustments in two places: QgsMapSettings::updateDerived() and QgsMapRenderer::adjustExtentToSize() As I'm trying to deal with viewport rotation, any such duplication makes the work harder as things need to be changed in many different places. Similar

[Qgis-developer] qgis --version and qgis_mapserv.fcgi --version ?

2014-11-25 Thread Richard Duivenvoorde
Hi devs, Playng with QGIS-mapserver I had a qgis_mapserv.fcgi hanging around in /usr/lib/cgi-bin of which I did not know which version it was Trying (he, this is Linux) to do a qgis_mapserv.fcgi --version it appears that's not working So I tried qgis --version which is not there either :-(

Re: [Qgis-developer] qgis --version and qgis_mapserv.fcgi --version ?

2014-11-25 Thread kimaidou
Hi Richard, You could also use ldd to get the linked libraries. I agree with you it could be good to be able to get the git commit number for one installed QGIS ( build or downloaded) Michael 2014-11-25 21:49 GMT+01:00 Richard Duivenvoorde rdmaili...@duif.net: Hi devs, Playng with

Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows

2014-11-25 Thread eliu1234
Thanks for the link. I have checked out the C++ code example on Github before. But it is just kinda frustrating to see that the examples are mostly from 5 years ago and so much have changed. Also, for the add_raster_layer example in particular, I setup the whole project on my computer and try to

Re: [Qgis-developer] [plugins] refreshing canvas

2014-11-25 Thread Alexia Mondot
I've tried to add the canvas.repaint() with my canvas.refresh(), and it seems to work ! Thanks ! Alexia On 25/11/2014 00:37, Nathan Woodrow wrote: Hey, I suspect you are running into this http://gis.stackexchange.com/questions/87841/why-qgsmapcanvas-only-appear-after-lost-focus Here is

[Qgis-developer] Contrast Enhancement

2014-11-25 Thread Alexia Mondot
Hi all, I have some problems to apply new stretching values to my layer I have a function which allows to adapt the stretching of my image without the raster layer properties dialog. When I open an image with my plugin, I display it on the canvas, I open my own histograms, and I can move