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
0
votes
1answer
24 views

Custom form with QT for QGIS 3.4, Date edit Widget, Null value

I made a custom form for QGis with QT-designer and I have a problem with the Date-Widget. When I create a form in QGIS with drag and drop or automatically, then it works: Fore a date-field I can ...
1
vote
1answer
35 views

Keep the QDialog visible in PyQGIS

I've made a custom plugin and use QT Designer. When the form appears, if I click into the cavenas then the form disappears. I would like to force the forme to stay a the first plan. And also, keep the ...
0
votes
0answers
12 views

Is there any prebuilt libraries for GeographicLib

I have been struggling to build GeographicLib for use in a Qt project and I was wondering if there is any version of the library that has already been built to work with Qt(minGw)?
0
votes
1answer
26 views

Create QT variables using for i in range [closed]

I would like to create self variables using for i in range. for i in range (1,50): name = "self.layoutG" + str(i) grid = QGridLayout() nameA = "self.layoutG" + str(i) + "a" gridA = ...
0
votes
0answers
24 views

Developing QT application with QGIS

I want to develop C++ QT(widget or quick) application which uses QGIS. However, i could not find any resources about how to merge each other. Can you help me? Link, method, example etc. will be ...
0
votes
0answers
29 views

QT Designer SIGSEGV on Debian 10 and VirtualBox

Recently I updated my development virtual machine (VirtualBox) from Debian 9 to Debian 10. Except for a few minor bumps along the road, everything went smooth. But when I try to run QT Designer I got ...
1
vote
0answers
21 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
205 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
62 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
78 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
24 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
59 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
56 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
420 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 ...
3
votes
1answer
124 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
101 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
20 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
514 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
63 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
51 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
83 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
94 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?
1
vote
1answer
38 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
328 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
48 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
726 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
178 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
52 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
388 views

Qgis 3.0 and Qt 5.10 problems [duplicate]

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
162 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
185 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
150 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
501 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
548 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
250 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
194 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
85 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
184 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
191 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
234 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
122 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
55 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
212 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
84 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
262 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
93 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
664 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
669 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....