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

QGIS QT Designer DPI/Scalability issues

I have a QHD monitor and it's been giving me all sorts of problems when I build my custom plugins in QGIS3. I've built my plugins using the plugin builder and designed the UI with QT Designer for QGIS ...
0
votes
0answers
32 views

``Qt: QUndoStack::endMacro(): no matching beginMacro()`` error on PyQGIS script

I am working on a QGIS plugin that allows redrawing a selected feature without losing its original attributes. The plugin works properly and the process ends well but I am receiving a QT error that I ...
1
vote
1answer
43 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 ...
2
votes
1answer
35 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 ...
2
votes
0answers
22 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 ...
0
votes
0answers
23 views

QDockWidget losing its objectName after getting added to QGIS Interface in custom Plugin

I'm creating a custom QGIS (3.10) plugin, using Python 3, PyQt5 and PyQGIS. I'm facing an issue when adding a QDockWidget to QGIS Interface using iface.addDockWidget() functionality. Consider this ...
1
vote
1answer
20 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 ...
0
votes
0answers
31 views

Including QGIS in QT on Windows

I am trying to include QGIS in Qt on my Windows system. I downloaded OSGeo4W and run this. It created OSGeo4W folder in my C drive. My Qt version is Qt 5.5.1 (MSVC 2013, 32 bit). When I try to run ...
1
vote
1answer
469 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 ...
0
votes
0answers
44 views

How to include QGIS libraries to C++ QT

I'm a newbie to QGIS. Initially, I only want to display a map on the screen, nothing more, but I couldn't find a solution for my problem on the web. Also, I want to use that map as QWidget; is it ...
0
votes
0answers
96 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/...
1
vote
2answers
95 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 ...
0
votes
0answers
20 views

ArcGIS Qt SDK Move camera in qml

I am using developer edition of ArcGIS Qt SDK. What I am trying to do is, move camera from one point to another point in a timer. Somehow the camera does not move and is stuck on in its initial ...
1
vote
1answer
243 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 ...
1
vote
0answers
19 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 ...
2
votes
0answers
540 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 ...
0
votes
1answer
409 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 ...
0
votes
0answers
63 views

Get width of vertical QHeaderView

How can I get the actual width of the vertical header in a QHeaderView. In the docs I can only find the function sectionSize(). But the docs says: 'Returns the width (or height for vertical headers) ...
1
vote
0answers
40 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 ...
1
vote
1answer
62 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
1answer
107 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
41 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 ...
2
votes
1answer
86 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
523 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
37 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
2answers
46 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
90 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....
2
votes
0answers
34 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
83 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
142 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 ...
6
votes
1answer
2k 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" ...
3
votes
1answer
90 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
60 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
1answer
28 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 = ...
2
votes
0answers
111 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
293 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
199 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 ...
3
votes
1answer
153 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 ...
1
vote
1answer
220 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
165 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
827 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
461 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
139 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
24 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
1k 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
111 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
104 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
201 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
67 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
559 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(...