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
0 answers
28 views

QGIS with Qt 6.x

When I build my project with Qt-Version 5.12.8, there is no problem and it works flawlessly. However, when I build it with Qt 6.2.2, I get the following error: map.cpp:(.text.startup+0x683): undefined ...
user avatar
  • 73
0 votes
0 answers
9 views

qt .pro file INCLUDEPATH issue

In the Qt .pro file, I am including QGIS libraries like following: QGIS_DIR = /home/unibw/dev/QGIS BUILD_DIR = /home/unibw/dev/cpp/QGIS-Debug-Build LIBS += -L$${BUILD_DIR}/output/lib -lqgis_app -...
user avatar
  • 73
2 votes
1 answer
93 views

Cannot run qgis_process on WSL2, its trying to connect to a display

I'm trying to run qgis_process on WSL2 on Windows 10 using Ubuntu and I get this Error message: qt.qpa.xcb: could not connect to display xxx.xxx.xxx.x:x qt.qpa.plugin: Could not load the Qt platform ...
user avatar
2 votes
1 answer
24 views

Separate left and right mouse clicks when clicking on canvas

I want to call some functions when I click left and right on the canvas. I wrote the following code for this: mpMapCanvas = new QgsMapCanvas(); mpClickPoint = new QgsMapToolEmitPoint(mpMapCanvas); ...
user avatar
  • 73
0 votes
0 answers
27 views

Add Pixmap object to vector layer as feature using QGIS

I am using Qt and QGIS C++ API to create a GUI. I added a marker to the QGraphicsScene as Pixmap item. mpMapCanvas = new QgsMapCanvas(); scene = mpMapCanvas->scene(); QPixmap pixmap = ...
user avatar
  • 73
0 votes
0 answers
14 views

Display field attributes from a layer included in a mmpk

We are customizing the AppStudio Offline Geocoding and Routing app with our own data. We would like to add the option of selecting the POIs from a combo box so people can select a POI by name if they ...
user avatar
1 vote
0 answers
26 views

How to align drop-down display in a QGIS dock plugin

I have made a QGIS plugin using the dockwidget display mode. The GUI is made with Qt Designer. It contains a few dropdowns, one of them for layer selection. It's working really well, but when the ...
user avatar
  • 641
1 vote
0 answers
41 views

put marker on a vector layer / map Qt-Qgis

I am designing a GUI using Qt and QGIS and showing maps (shapefiles - Vector layers) on the GUI. I want to put a marker on the vector layers when I click somewhere on the map. I could get coordinates ...
user avatar
  • 73
1 vote
0 answers
73 views

Using QGIS Library in Qt Creator

I wanted to create a GUI in Qt Creator using QGIS libraries. I followed build steps and could build QGIS in Qt Creator. I can open the application from Qt Creator. I have created a GUI using QT ...
user avatar
  • 73
0 votes
0 answers
22 views

Access QGIS Server Properties via Plugin

For a QGIS Plugin, the User has to provide some input regarding QGIS Server (WMS capabilities) and I dont want to mirror the input options in the plugin. Can i jump from the plugin directly into the ...
user avatar
  • 457
1 vote
1 answer
57 views

PySimpleGUIQt does not import inside QGIS, DLL not found

I am trying to run a script inside QGIS that uses pySimpleGUIQt. I can't get it to work, a DLL is not found. Configuration Win10 64b, QGIS 3.16 (Python 3.7) Steps to reproduce the error Open osgeo4w ...
user avatar
  • 41
1 vote
0 answers
141 views

Setup QGIS to use in C++ Qt Application

I have been working on a Qt5 Widgets based application. I'm required to display maps (vector charts) in my application on a widget and for that purpose I've decided to use the QGIS library in my ...
user avatar
  • 33
1 vote
0 answers
214 views

Folium map not updating when adding Tooltip attribute in PyQt GUI

I am trying to create a geospatial Python GUI app using PyQT5, Geopandas, OSMnX, and Folium. I am converting the app into an .EXE file using pyinstaller. The app looks something like this: I am using ...
user avatar
0 votes
0 answers
40 views

Required DLL for calculating distance between 2 points

I have been trying to find the distance between 2 points using QGIS C++ APIs in Qt. I used the following code : QgsDistanceArea d; d.setEllipsoid("WGS84"); qDebug()<< "...
user avatar
1 vote
0 answers
39 views

What toolchain for a Win10 C++/Qt QGis custom application based on QGis v3.20?

We have a C++/Qt application based on the KDE Marble library. I would like to replace the Marble library with the QGis library. However it is not too easy to figure out the correct environment for ...
user avatar
0 votes
0 answers
16 views

Autocorrelation Plugin Python Development

I have a QGIS Plugin I'm currently working on with various features one of them being performing autocorrelation of a couple of attributes of the selected layer. I have already developed the ...
user avatar
  • 1
0 votes
0 answers
55 views

Setup standalone Qt/C++ app with QGIS

i need to develop an Qt/C++ app, that contains dashboards and other info, but I also need the map tools that QGIS offers, but I am struggling to setup this app. I've searched for several instructions, ...
user avatar
1 vote
0 answers
129 views

Problem on running a sample code of QGIS3 C++ API

I have written a code using QGIS 3 C++ API. But there are runtime errors. My environment is: Windows 10 64bit Qt 5.15.1(MSVC 2019) Qt Creator 4.13.1 QGIS 3.x.x using osgeo4w-setup-x86_64.exe, and ...
user avatar
0 votes
1 answer
74 views

QGIS 3 C++ API, QgsApplication crash

I'm trying to create a simple application using QGIS 3 SDK. I have used osgeo4w-setup-x86_64.exe for installing QGIS, and I have also installed qgis-dev and qgis-ltr-dev and Qt5. I have set up my .pro ...
user avatar
0 votes
0 answers
33 views

Why QGIS installs QT related plugins?

I dread installing QGIS because this additionally always installs QT Assistant, QT Designer, QT Linguist. Any reason behind it? I don't use any plugins but sudo apt install qgis forces to install ...
user avatar
1 vote
1 answer
60 views

Getting multiple column values at the same time in QGIS using Python

I need to filter multiple column values using python in QGIS. I am facing issue while writing expression using QgisExpression(qgis.core). If one of the column values is NULL then also I need to get ...
user avatar
1 vote
0 answers
45 views

Zoomscale method in QGIS C++ API

I am working on a custom QGIS application using QGIS C++ APIs. I am able to render .mbtiles file of world blue marble as a raster file on Qgsmapcanvas. but when I call zoomscale API on canvas with ...
user avatar
2 votes
1 answer
137 views

Display QGIS Temporal Controller widget within custom plugin widget

I am building a QGIS-Plugin retrieving time-series raster data from several sources, which is then supposed to be visualized (so far separately and manually) via the Temporal Controller widget, added ...
user avatar
  • 23
2 votes
1 answer
295 views

Correcting canvas DPI in QGIS Windows

I'd like my QGIS map canvas scale to be accurate, e.g. so if the scale is 1:10000, then 100m on the ground should show in 1 cm of screen. My Windows laptop screen has 157 ppi (dpi) based on its ...
user avatar
  • 6,330
2 votes
0 answers
64 views

Several errors compiling QField App with Qt Creator

I tried compiling QField on Windows for a week now. But I still have several compiler errors and now I don't know how to fix them. I followed the build manual of the Github repository. So I installed ...
user avatar
  • 21
1 vote
1 answer
60 views

PyQGIS signal - crsChanged

I'm trying to connect to the crsChanged signal in PyQGIS and each time I try to connect to it, I get the following error: () missing 1 required positional argument: 'x' The relevant pieces of code ...
user avatar
1 vote
1 answer
996 views

QGIS 3.14 vs "no Qt platform plugin could be initialized"

Ever since updating to the most recently released QGIS stable version, 3.14.15, I am getting the error pop-up window: "This application failed to start because no Qt platform plugin could be ...
user avatar
  • 451
3 votes
0 answers
261 views

Convert tile grid values from EPSG:3857 to EPSG:27700

Ordnance Survey have recently released an API for map tiles in the leisure series. Their tile set uses a grid based on EPSG:27700. This uses a standard zxy url https://api.os.uk/maps/raster/v1/zxy/...
user avatar
1 vote
2 answers
285 views

Qt Offline OSM Map freezes

I am developing an application that needs to show map tiles without internet. My initial step is to show map tiles, that part is done. Next step is to show tiles without internet. I tried to get tile ...
user avatar
2 votes
1 answer
660 views

Using QGIS C++ API In Custom GIS Application

I'm trying to develop a custom GIS application using Qt. Which will show a map and have some figure drawing options on the map. While searching on the web, I came across with QGIS. I wonder if I could ...
user avatar
1 vote
0 answers
20 views

Oflline MAP Fully disconnected

My desktop app contains a Map using ArcGIS runtime SDK. The app should work in a fully disconnected environment. The app will be installed on a Glider (Aircraft). I have done all the app on Qt and the ...
user avatar
3 votes
0 answers
2k views

Problem with font size depending on screen resolution - QT

I developed a QGIS plugin by designing the interface with QT Designer. The inferface appears correctly on my computer (left image). However, on some computers, I encounter size problems, especially ...
user avatar
1 vote
1 answer
1k views

I can't load a CSV file inside a QTableWidget by Python code

I am a beginner of PyQGIS and I'm trying to do a QGIS plugin, with QGIS 3.4.7 and PyCharm 2016.3.6. I already did the "dialog" box on Qt and after I wrote on Pycharm. It is a table only with ...
user avatar
  • 11
1 vote
0 answers
47 views

QGIS plugin: are project variables creatable and writable

I like to develop a plugin and made a github repository. Upfront: this is my first time and haven't got a clue yet. This is my target: This plugin is intended to be used in QGIS. QGIS has the ...
user avatar
1 vote
1 answer
181 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 ...
user avatar
  • 457
0 votes
1 answer
210 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 ...
user avatar
  • 41
3 votes
1 answer
171 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 ...
user avatar
  • 6,722
0 votes
1 answer
1k 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 ...
user avatar
  • 19
1 vote
0 answers
67 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, ...
user avatar
-1 votes
2 answers
79 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..
user avatar
  • 19
1 vote
1 answer
179 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....
user avatar
  • 19
2 votes
0 answers
43 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'...
user avatar
  • 795
7 votes
1 answer
206 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 ...
user avatar
2 votes
1 answer
432 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 ...
user avatar
  • 995
6 votes
2 answers
4k 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" ...
user avatar
  • 61
3 votes
1 answer
154 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 ...
user avatar
  • 165
1 vote
1 answer
110 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 ...
user avatar
  • 626
0 votes
1 answer
33 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 = ...
user avatar
  • 445
2 votes
0 answers
162 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" ...
user avatar
3 votes
3 answers
378 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 ...
user avatar