Skip to main content

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

Select rectangle area from vector layer on qgsmapcanvas

I have created simple Qt project (C++) to load the vector layer on map Canvas. You can find the layer in QGISTest03_MapData Folder. I have attached the project link below. I want to select a rectangle ...
Bharath G U's user avatar
0 votes
0 answers
145 views

'ImportError: No module named resources_rc' while adding image in custom plugin using Qt designer

I am trying to add an image in the UI file of my custom plugin which will be used in QGIS. But I am facing this error: ImportError: No module named resources_rc Could anyone tell me how to add an ...
BenStone's user avatar
  • 333
1 vote
0 answers
82 views

Add one OpenGL object like QOpenGLWidget in QgsMapCanvas in a correct lat and lon

I want to add a large number of points to a QgsMapCanvas in a way that updates them every 100 milliseconds. In my initial attempt, I used QgsMapCanvasItem and QPainter to draw these points on the map. ...
Parisa.H.R's user avatar
0 votes
0 answers
147 views

Import QWebEngineView into PyQGIS script

I'm working on a project that should interact with Google Maps API. Usually I use QWebView as a widget to load web pages. But my simple html page is not loading there. However if I load the original ...
Pavel Pereverzev's user avatar
1 vote
0 answers
22 views

Customizing popup using C++ Qt SDK

I have a KML layer on my map. I want to have a customized popup that will appear on click of placemark on my KML layer. I want to have customized fields in my popup. I am using C++ qt SDK and tried to ...
Trupti Desai's user avatar
8 votes
2 answers
272 views

Display form window as small as possible (QGIS)

Is it possible to always set the form window (standard form of QGIS) to its minimum size? Currently, the form window retains the size of the last opened form window. However, I have forms with many ...
MartinMap's user avatar
  • 8,324
1 vote
1 answer
102 views

Showing attribute text from selected feature from QComboBox list with PyQGIS

I have a layer that I can edit with a mouse click on features in the map (dialog will open). Attribute fields can be edited via dropdown menu. How can I display the currently saved value of a feature ...
CruiseLee's user avatar
2 votes
1 answer
840 views

Building QGIS. Is Qt6 supported?

I am in the process of building QGIS from source (https://github.com/qgis/QGIS) for Windows 10. I am using QtCreator 7.0.2 based on Qt 6.2.3 (MSVC 2019 , 64 bit). Does the current source for QGIS ...
paulQGIS's user avatar
-1 votes
1 answer
97 views

QGIS run OGR command from UI feature form

I would like to run ogr2ogr script from a UI feature form button in QGIS, that would start some SQL script linked to the opened feature table, store the output back to database and ideally reload the ...
Albine Pro's user avatar
1 vote
1 answer
345 views

QGIS Building From Source Code with QtCreator in Windows 10 - Flex Dependency

My end objective is to develop QGIS plugins using C++ for a Windows 10 target machine, and to use QtCreator as the software development and build environment. Following https://docs.qgis.org/3.22/en/...
paulQGIS's user avatar
3 votes
0 answers
1k views

Error Qt QTemporaryDir when starting QGIS 3.25

After opening QGIS 3.25 appears a message on the top: 1-Qt: QTemporaryDir: Unable to remove "C:\Users\User\AppData\Local\Temp\QGIS3-aPRVXc" most likely due to the presence of read-only files....
Iven Pepa's user avatar
  • 341
1 vote
0 answers
518 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 ...
kry23's user avatar
  • 93
3 votes
1 answer
1k 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 ...
John Boswell's user avatar
2 votes
1 answer
156 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); ...
kry23's user avatar
  • 93
1 vote
0 answers
43 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 ...
Leo's user avatar
  • 701
1 vote
0 answers
257 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 ...
kry23's user avatar
  • 93
1 vote
0 answers
300 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 ...
kry23's user avatar
  • 93
1 vote
1 answer
165 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 ...
ThomasJ's user avatar
  • 76
1 vote
0 answers
672 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 ...
Fuzail's user avatar
  • 133
1 vote
0 answers
813 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 ...
Magnum Python 93''s user avatar
0 votes
0 answers
63 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()<< "...
Puneet Kumar's user avatar
1 vote
0 answers
58 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 ...
user190521's user avatar
2 votes
0 answers
309 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 ...
Alireza_Armn's user avatar
1 vote
1 answer
219 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 ...
Alireza_Armn's user avatar
0 votes
0 answers
58 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 ...
nurgasemetey's user avatar
1 vote
1 answer
95 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 ...
Vivek N S's user avatar
1 vote
0 answers
73 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 ...
Puneet Kumar's user avatar
2 votes
1 answer
257 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 ...
J.B.'s user avatar
  • 23
2 votes
1 answer
761 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 ...
Houska's user avatar
  • 8,016
2 votes
0 answers
135 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 ...
Keano's user avatar
  • 21
1 vote
1 answer
122 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 ...
user1655130's user avatar
1 vote
1 answer
1k 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 ...
mastorey's user avatar
  • 449
3 votes
0 answers
562 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/...
CitizenFish's user avatar
1 vote
2 answers
664 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 ...
Berkant Ay's user avatar
3 votes
1 answer
1k 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 ...
nedret ozay's user avatar
1 vote
0 answers
26 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 ...
Muhammad Ismail's user avatar
4 votes
0 answers
4k 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 ...
paul.barioul's 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 ...
G.V.'s user avatar
  • 11
1 vote
0 answers
62 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 ...
CaptainAhab's user avatar
  • 1,012
1 vote
1 answer
572 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 ...
Nunkuat's user avatar
  • 495
0 votes
1 answer
400 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 ...
barber's user avatar
  • 41
3 votes
1 answer
333 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 ...
Zoltan's user avatar
  • 7,335
0 votes
1 answer
3k 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 ...
neutri's user avatar
  • 19
2 votes
0 answers
110 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, ...
Hamza Mehmood's user avatar
-1 votes
2 answers
243 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..
neutri's user avatar
  • 19
1 vote
1 answer
395 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....
neutri's user avatar
  • 19
2 votes
0 answers
63 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'...
ericoneal's user avatar
  • 825
7 votes
1 answer
380 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 ...
Rohit Handique.'s user avatar
3 votes
1 answer
1k 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 ...
Lorenzo's user avatar
  • 1,085
6 votes
2 answers
7k 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" ...
CKP's user avatar
  • 61