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
20 views

QGIS Plugin with DockWidget and MainWindow

For my QGIS Plugin, that I started with the QGIS Plugin Builder, I built a QDockWidget and populated it with some functions. Now I want to add a QMainWindow, since I need more space for further ...
0
votes
0answers
16 views

Qgis QtQuick integration?

I would like to use Qgis with QtQuick. I can use Qgis with QtWidget with the libs that i downloaded from OSGeo4W but there is no qtquick libraries in there. In Qgis's website there is a demo with ...
0
votes
0answers
36 views

QGIS adding a new custom layer

I am using QGIS and QtCreator and I have two questions: How to draw customized/complicated shapes with QGIS? How can I calculate the pixel values (to draw my own shapes) since I always have the real ...
0
votes
0answers
22 views

Tile package (.tpk) file opening issue on Qt

My aim is to give path of my .tpk file to the sdk as basemap. Issue is, I have exported the necessary .tpk file using ArcGIS Pro Trial version. However when I show the path of the .tpk to my program, ...
2
votes
1answer
34 views

Expand QListWidget in QDockWidget in a QGIS plugin

I am working on a QGIS plugin. The plugin has a panel with two QListWidget and buttons, labels, etc. I would like to expand horizontally and vertically the lists if panel resized. I set the hsizetype ...
0
votes
1answer
70 views

Using .osm.pbf file as an offline map resource for QT OpenStreetMap plugin

I implemented the example in the link below, https://www.qt.io/blog/2017/05/24/qtlocation-using-offline-map-tiles-openstreetmap-plugin Works well, however I need much more map data then the provided ...
1
vote
0answers
19 views

QgsMapCanvas map rendering issue

Background : I am making a raster + vector map navigation application using Qt4 and QGIS in C++. Map is loaded inside QgsMapCanvas, which is quite slow, mapcanvas is the part of QGraphicScene, ...
-1
votes
1answer
22 views

How can I use my .tpk file in with ArcGIS QT SDK?

I am using developer edition of ArcGIS QT SDK. However I could not find any document about giving path of my .tpk file to the basemap class in the code. Need help people..
1
vote
1answer
37 views

Using DTED file as raster elevation source at ArcGIS SDK for Qt?

I am using ArcGIS SDK for Qt 100.7 for development and I was getting elevation from the code ArcGISTiledElevationSource* elevationSource = new ArcGISTiledElevationSource(QUrl("https://elevation3d....
1
vote
0answers
28 views

Store and Open PDFs in ESRI App Studio

Is it possible to open local PDFs from within ESRI's AppStudio? I can easily open pdfs and files from web links with "Qt.openUrlExternally('http..." but I need this app to work completely offline. I'...
2
votes
1answer
52 views

Get ComboBox selected Layer's path as a string to use in OGR/GDAL method

I'm making a plugin that converts vector .shp to raster .tif. This is the UI of the plugin. The ComboBox is the custom mMapLayerComboBox widget. After selecting a loaded shapefile in QGIS, what is ...
2
votes
1answer
39 views

Using QCompleter with strings composed by different words in QGIS Plugin - PyQT5

I'm using QCompleter in my QGIS plugin. The code below works well, but I'd love to make it more sophisticated. In this example I have some strings that are composed of some words, for example "How to ...
2
votes
0answers
257 views

pyrcc_main.py: File does not exist 'resources.qrc'

I am trying to install Python plugins (to develop QT/Python plugins for QGIS). I see the following error when I try to run the command: Compile.bat: @echo off call "C:\OSGeo4W64\bin\o4w_env.bat" ...
1
vote
1answer
36 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
43 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
17 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
27 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
31 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
38 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
39 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
228 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
83 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
95 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
26 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
90 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
79 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
531 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
191 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
113 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
22 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
691 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
79 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
1answer
95 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
114 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
44 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
369 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
54 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
791 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
190 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
56 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
176 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
200 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
163 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
539 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
569 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
257 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
225 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
90 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
187 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 ...