The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

Filter by
Sorted by
Tagged with
1
vote
0answers
11 views

QGIS3 - Using QML in a python plugin on OSX - missing modules

I have the following QML file I am trying to display in a python plugin import QtCharts 2.0 import QtQuick 2.0 ChartView { antialiasing: true title: "Chart Title" titleColor: "white" ...
3
votes
3answers
189 views

Manipulating value with toolbar

In my project, I use 3 layers with a line geometry. Every line in the layer is a contour with the same depth "valdco". For operational ease, I color these lines blue, red en orange (as seen in the ...
1
vote
1answer
50 views

QGIS plugin: Set the size of the plugin when loaded and change the name

I have two quick questions with the plugin I built: (Red circle) How can I set the size of the plugin window when it loads into QGIS? The default size when loaded is a little bit too small and not ...
2
votes
1answer
55 views

Create tabs for the QGIS plugin interface using Qt Creator

Is it possible to create tabs for QGIS plugin using Qt Creator? (Something like the image I attached) I am trying to group the functionalities I developed for QGIS plugin and I think using multiple ...
0
votes
0answers
22 views

Calculating pitch and roll in ArcGIS Runtime?

For a more realistic movement it is necessary to calculate the roll and pitch. How can I do this by knowing the coordinates of two points? my code: void ViewshedGeoElement::animate() { // if (...
1
vote
1answer
23 views

How to catch the event the mousePressEvent on Esri :: ArcGISRuntime :: Graphic?

All events mouse protected. I tried to do it via eventFilter and using QObject :: connect, but the result false. How do I catch a click event on Graphic? What I tried: ... void ViewshedGeoElement:...
1
vote
0answers
43 views

Changing the field colour/design on a QGIS 3 QT attribute form?

I have problems with changing the physical appearance of a custom attribute form (QGIS 3, Windows 7). A custom attribute form can be designed, for use in QGIS, using QT / QT Designer. In QT Designer ...
3
votes
2answers
296 views

Check if button is pressed in QGIS 3 module

There is a plugin I wrote for QGIS and I added some buttons there. From main launch Python script I need to check is specific button is clicked and according to that do some stuff. I saw a default ...
2
votes
1answer
74 views

How to add DockWidget above the Layer panel using PyQGIS

I'm trying to dock an attribute table on the left hand side of my window, above the Layers panel. By enabling "Open new attribute tables as docked windows" (under Settings Options > Data Sources ...
2
votes
2answers
91 views

Got Pacman instead of circle when buffering point QGIS 2.14 standalone C++ application

QgsVectorLayer *circleLayer = new QgsVectorLayer("Polygon", "Circle", "memory"); QgsFeature circleFeature = QgsFeature(); circleFeature.setGeometry(QgsGeometry::fromPoint(geometryPoint)->buffer(...
2
votes
0answers
18 views

Support materials and shaders in ArcGIS when importing model from 3D Max?

Does ArcGIS support materials and shaders when importing a model from 3D Max? Can I change the texture of the model when it is already added to the scene? How to do it? Esri::ArcGISRuntime::...
1
vote
1answer
303 views

QGIS Compiling 3.6.0 Troubleshooting about PyQt5, SIP, Qscintilla on Ubuntu 18.04 LTS

I work on UBUNTU 18.04 LTS/bionic, I am trying to compile QGIS 3.6.0, for an upgrade from QGIS 3.2. 0. I am facing the same trouble as several people the release compatibility between SIP and PyQT5 ...
1
vote
0answers
43 views

How to run PyQT code inside python console(editor) in QGIS? [closed]

I have built a simple PyQt application(inserting list item in QListWidget) which runs outside the QGIS environment.I want to integrate that inside the QGIS so that all the map layers will be inside ...
0
votes
0answers
42 views

How to use QT signals and slots in QGIS C++ API

I'm developing a standalone QT 5.11.2 application using QGIS 3.6 C++ API. I have defined a slot that is meant to consume a currentLayerChanged(QgsMapLayer * layer) signal. The slot declaration in ...
0
votes
1answer
79 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
80 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
52 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
34 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
302 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
45 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
634 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
155 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
1answer
48 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 ...
5
votes
0answers
368 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, ...
1
vote
0answers
149 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 <...
3
votes
1answer
168 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
137 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 ...
2
votes
2answers
463 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
523 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
224 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
170 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
74 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
173 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
188 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,...
8
votes
2answers
207 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
115 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
47 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
204 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
80 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
236 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
89 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 ...
2
votes
1answer
4k 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
616 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 ...
5
votes
2answers
637 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
46 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
262 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
264 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
92 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
77 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 ...