Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [qt]

Is a cross-platform application framework that is widely used for developing application software with a graphical user interface (GUI) (in which cases Qt is classified as a widget toolkit), and also used for developing non-GUI programs such as command-line tools and consoles for servers.

0
votes
1answer
17 views

How to access GeoServer WMS service in ArcGIS Runtime SDK for QT application

I have been looking finding the documentation on how to add GeoServer WMS services in ArcGIS Runtime SDK for QT applications. However, I found the sample below: https://developers.arcgis.com/qt/...
0
votes
1answer
30 views

Difficulties working with QGIS 3.4 API

I want to work with QGIS 3.4 in a C++ Qt project, but the API in version 3 has been completely changed and the sample code for older version don't compile anymore. Is there some sample code which ...
0
votes
1answer
20 views

QGIS plugin - checkbox un-checked by default

Does anyone know how to set a checkbox to un-checked by default in a QGIS plugin? Is it done within the UI script for the plugin and can it be achieved within Qt Designer?
0
votes
0answers
21 views

Adding 2d and 3d base map which includes map actions in Qt application using C++?

I would like to add a base map(Map in the background) to view geospatial vector data in a Qt application i.e written in C++. I have gone through the Qt documentation here. I was only able to find 2d ...
1
vote
1answer
19 views

Show differenet SVG icons on one layer at runtime

I need to show several SVG icons (more than 388 icons) with different name on a single layer(if possible on memory layer). I am using QGis 2.8 and qt4.8.6 The icons represent different kind of ...
6
votes
1answer
180 views

Change background color of Layer in the TOC / QgsLayerTreeLayer with pyqgis

I would like to change the background-color (or font color) of some items in the TOC of QGIS: Example-Mockup: I tried several ways but nothing did the trick so far: layer_list = QgsProject.instance(...
1
vote
0answers
30 views

Locking QGIS and parent forms [closed]

I am trying to make a plugin for QGIS. This plugin has lots of forms and based on the condition the form calls a child Form. The following is an example I am using PyQt for creating forms. I want the ...
1
vote
1answer
301 views

Compiling QGIS 3.x (master) on Ubuntu 16.04 with Python3.6 and the latest Qt 5 and PyQt5 familiy modules (PyQt5, sip, qscintilla, pyqtchart)

The problem: Now that the compilation issue is over (Unable to compile QGIS 3.x (master) on Ubuntu 16.04: PyQt5.pyqtconfig module does not exist), QGIS 3 (master) refuses to load Python at startup. I ...
1
vote
1answer
106 views

Correct Qt version to build QGIS master

I just wonder wich version of QtCreator to install, current is Qt 5.11.1. Here I've read about building QGIS master with Qt 5.9.3 debug build: https://www.itopen.it/building-qgis-master-with-qt-5-9-3-...
0
votes
0answers
47 views

QT custom form - Button to run QGIS Action

No progamming experience so excuse the lack of knowledge! I have a custom form that works through a workflow and have created actions in QGIS to email an applicant or an organisation also, to create a ...
0
votes
1answer
39 views

Can I change the level of detail of shapefile with OGR?

I`m working in a project where I must display shapefiles. I'm using OGR to read the shapefile data and use QT to display it. At this moment, I can display correctly shapefiles with around 2000 ...
4
votes
0answers
252 views

Qgis 3.0 and Qt 5.10 problems

I installed Girona on Ubuntu 17.10 and it never worked for me. I just updated Ubuntu 18.04 LTS and Qgis displays the following message: Traceback (most recent call last): File "", line 1, ...
0
votes
0answers
50 views

Built QGIS 2.xx debian packages with QT5 : unmet QT4 dependencies

I followed QGIS install tutorial to build QGIS including QT5 instead of QT4.. but I may have missed something because it keeps requesting QT4 dependencies. I also followed Matthias Kuhn instructions ,...
0
votes
0answers
78 views

Can't get EPSG from Shapefile with OGR/GDAL

At this moment, i'm working in a shapefile visor in C++ and QT and using the GDAL/OGR library. I have this method to get the EPSG of my shapefiles: OGRLayer layer = dataset->GetLayer(0); ...
1
vote
0answers
104 views

QGIS 2.18 C++ API: How do I match the scale of vector and raster layers with different crs?

I'm loading two layers to QGIS maps canvas: the first is a shapefile, with EPSG:4326 crs. The second is an xml for Goolge TileServer, with EPSG:3857 crs. Google TileServer - Hybrid.xml <...
0
votes
0answers
278 views

Convert x/y to lat/lon

I am using the HDF data and I have a library which I can get x,y to lat/lon and lat,lon to x/y based on that library. However when I want to extract some of my data I need to get x,y to lat/lon as ...
3
votes
1answer
104 views

Custom form for QGIS processing script

I'd like to get a little more control over the layout and functionality of the user interface associated with a processing script I've created. I've made a ui file using Qt Designer, but I can't ...
2
votes
1answer
91 views

Finding QSettings keys from source code?

I'm looking to change a number of QGIS settings with a python script. Whilst I can find references to some specific keys through various questions/answers on StackExchange, I can't find a method to ...
1
vote
0answers
398 views

Writing a custom Qt Location GeoServices plugin to use georeferenced image file as map source [closed]

I'm currently working on a Qt Quick application that will provide a map viewer for a smallish area (1 square KM or so), the map details for which will be provided in a single georeferenced image file (...
2
votes
2answers
347 views

PyQt - merge selected features function

VERSION QGIS 2.1x i realize plugins to do this actions without use toolbar: copy features / paste to layer / merge selected features => define attribute to use in merge. So, all is okay but i don't ...
0
votes
0answers
382 views

How to display a Google Maps with Qt + QGIS

I am developing an application with Qt + QGIS. It will have a map component to be rendered by QGIS. The map needs to contain a base layer with Google Maps tiles and additional layers with data loaded ...
1
vote
0answers
168 views

Developing application with Qt + QGIS or with PyQGIS + QGIS

I'm a n00b developer in the GIS arena, developing a desktop application that will have a window to display map data, along with other windows to perform operations over the data. I also would like to ...
2
votes
1answer
115 views

QGIS in Qt Widgets (Cross Platform Application) [closed]

I am currently developing a widget Application in Qt, and I need to use GIS in this software. Naturally I first found the ArcGIS API for Qt, but like ArcGIS, it only runs on Windows and Linux, and ...
1
vote
0answers
56 views

Qt Qgis mouse event on QgsMapCanvasItem

I'm trying to intercept the mouse event on a QgsMapCanvasItem. I create a new class that extends the QgsMapCanvasItem, and override the mouseReleaseEvent (i put a qDebug inside). As long as I tried a ...
1
vote
1answer
134 views

Cannot mix incompatible Qt library

I run my exe on cmd by passing argument and get this error: Cannot mix incompatible Qt library (version 0x50902) with this library (version 0x50901) How can I fix the problem? It is an standalone ...
1
vote
0answers
134 views

How do I import QGIS C++ libraries into my Qt/C++ project?

I'm working on Ubuntu 14.04 and I downloaded QGIS Desktop version 2.18.14... I also have Qt Creator version 3.0.1 (based on Qt 5.2.1)... When I downloaded QGIS Desktop via the Ubuntu software center,...
0
votes
1answer
112 views

ArcGIS Runtime SDK for Qt - Drawing Distance Line [closed]

I'm just starting with ArcGIS Runtime SDK for Qt and having gone through many of the examples, I'm looking for advice as to how I would draw a line representing the distance between two points. My ...
8
votes
2answers
162 views

Colouring attribute/field on QGIS data form based on value?

Using QGIS (2.14) is it possible on the data form for an attribute to have a colour (or other formatting) based on its value? For example if my data has a field 'quality' which has a value 'good' or ...
3
votes
1answer
84 views

How to dynamically change text of checkable icon?

In my QGIS plugin, I have a checkable QIcon which changes image depending on its state. Is it also possible to change its tooltip text (i.e. if icon is checked, the text would read "myPlugin ON"; ...
7
votes
1answer
3k views

QGIS 3.0 and Qt 5.7 time schedule

When will QGIS 3.0 with QT5.7 (possibly) be released as a stable and long term support version?
1
vote
0answers
44 views

Change the content of Countries.txt

I'm following the steps on this page: "https://github.com/mapsme/omim/blob/master/docs/MAPS.md", "https://github.com/mapsme/omim/blob/master/docs/INSTALL.md" When I run this line "omim / tools / ...
1
vote
0answers
155 views

Routing of OpenStreetMap with Qt and maps.me?

I'm following the steps on this page: "https://github.com/mapsme/omim/blob/master/docs/MAPS.md" and: "https://github.com/mapsme/omim/blob/master/docs/CONTRIBUTING.md" When I run this line "omim/...
0
votes
1answer
63 views

OTF Coordinate Transformation on QgsMapCanvas

I want to be able to reproject the current layer's CRS onto the map canvas' CRS. I am using the C++ library with Qt. I have enable the OTF CRS transformation by calling setCrsTransformEnabled(true); ...
2
votes
1answer
180 views

How can I read in Qt listWidget functionality as Qgis the raster calculator?

I want to create a module in Qgis, my raster calculator, I'm stuck in the moment as it is possible to read raster files, just like in Qgis. If we open the raster calculator Qgis, we see in the raster ...
1
vote
0answers
54 views

QGIS raster layer invalid

I am trying to load a georeferenced .tiff file into the map canvas in a Qt application. While it is displayed when the application is running on my laptop, the same image does not get loaded into the ...
3
votes
1answer
3k views

QT C++ application using QGIS API

I'm trying to develop a QT C++ application that uses QGIS API and I can't manage Qt Creator to compile the code. I've read several topicts at gis.stackexchange and from other sources. The information ...
1
vote
1answer
430 views

Ways to access WMS map server from Qt QML “Map” component

I have an application which uses Qt library (version 5.8). Said application needs to draw a map, provided by a (local network) map server. The server gives only WMS maps (and is maintained by a third ...
0
votes
0answers
133 views

undefined reference to QMutex::unlockInternal() for libqgis_core.so while using qgis with qt

Installed qgis 2.14.9 and qt4.7.4 with qt creator 2.3.1. on RHEL7 .pro is here QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets QT += xml TARGET = temp2 TEMPLATE = app SOURCES += ...
5
votes
2answers
527 views

Installing QGIS 2.14.9-Essen with Qt 5.6.1 on RHEL7 (64-bit)

I have installed RHEL7 Installed qt-opensource-linux-x64-5.6.2.run Installed qgis-2.14.9-1.el7.x86_64.rpm with other dependencies as follows: 1. qgis-2.14.9-1.el7 RPM for x86_64 1.1. gpsbabel-1.5.0-2....
1
vote
1answer
38 views

error while running CGAl pacakge examples

I'm try to run "map_3_with_colored_facets" example which included in CGAL package but I faced some errors , it cannot read "Combinatorial_map.h" methods -cm.make_combinatorial_hexahedron() isn't a ...
-1
votes
2answers
233 views

Adding Cgal headers after building package examples?

I'm beginner at using Cgal . I'm trying to run the examples which included in the CGAl package, I built the examples using Cmake and "make" command. but I'm facing a problem in including the header ...
2
votes
0answers
230 views

QGIS: Error LNK2019 using QApplication

I'm trying to create a project using the QGIS class "QApplication" but it seems to fail due to an error I can´t understand. I'm using this build version of QGIS made for QT5.7, VS2015, W10 x64 and my ...
2
votes
1answer
81 views

Adding SVG items in QgsVectorLayer?

I am trying to add an SVG icon with the help of QgsVectorLayer in the QgsMapCanvas but not able to do so. Is there any mechanism to add an SVG icon to a layer?
1
vote
0answers
66 views

Get already used shortcuts in QGIS plugin

I have a c++ plugin in QGIS which contains a treewidget. Now I want to get the keyPress-events. Until now I get this with the eventfilter described here My problem is, I want to use shortcuts like ...
1
vote
1answer
214 views

GDAL get pixel color

Has a problem. I have an tiff image (that have 4 layers). My tasks is to make small changes in pixel's color to make image better. In this case I use GDAL library. My source is: GDALDataset *...
1
vote
1answer
63 views

Plugin Builder Load data [duplicate]

I am trying to re design a plugin to run multiple iterations of data loaded from a file. I am using QT creator to develop the GUI. How would I design a load data input box so users can select a data ...
2
votes
1answer
382 views

Standalone QGIS application in C++

I write a Standalone C++ Application and I can not load a vector layer. This is the error: QObject::connect: Cannot connect (null)::raiseError( QString ) to QgsVectorLayer::raiseError( QString ) Now,...
1
vote
2answers
96 views

When selecting input don't minimize window - pyqgis

I am making a plugin and I have a window in which you have to select an input file. There is a pushButton and lineEdit. I am typing a path and when clicking OK button to go back to window it ...
2
votes
1answer
625 views

import Map from QGIS into QT Designer

I am looking for a way to get a map from QGIS into QT Designer. I have the QT Designer version that comes with QGIS, meaning i have all the standard QGIS Widget. I don´t see a map widget, but many ...
1
vote
1answer
174 views

Help using offline QGIS API documentation

I have downloaded the QGIS documentation for offline usage, am I correct in thinking that the qgis.qch file is the one I need to open to view the documentation, using Qt Assistant? I have a Qt ...