Select to view content in your preferred language

How add search address bar for QT Widgets app

410
1
08-30-2022 06:03 AM
Labels (3)
VincentB38
New Contributor III

Hello,

I would like add an search address on my application Qt but, the tutorial propose by ESRI is for QT quick. What is the defferents solution for add this and keep the same possibility than the tutorialhttps://developers.arcgis.com/qt/geocode-and-search/tutorials/search-for-an-address/ . 

For more, on, the tutorial use QML on my application i don't use this thechnologie. 

Thanks for your help !

(If you can send an example or link with an other tutorial) 

0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

Hello, we don't have a specific sample or tutorial for Search/Geocode with Qt Widgets. The actual Runtime API usage will be the exact same as the tutorial (using LocatorTask to run a geocode). For the UI, you could use a QLineEdit - https://doc.qt.io/qt-5/qlineedit.html 

 

Here is a basic "Display a map" sample that will show you a very basic workflow of using our API in Widgets. The only real difference is that you will use a MapGraphicsView instead of a MapQuickView.

0 Kudos