Show callout

Loading

Code

#ifndef SHOWCALLOUT_H
#define SHOWCALLOUT_H

namespace Esri
{
  namespace ArcGISRuntime
  {
    class Map;
    class MapQuickView;
    class CalloutData;
  }
}

#include <QQuickItem>

class ShowCallout : public QQuickItem
{
  Q_OBJECT
  Q_PROPERTY(Esri::ArcGISRuntime::CalloutData* calloutData READ calloutData NOTIFY calloutDataChanged)

public:
  explicit ShowCallout(QQuickItem* parent = nullptr);
  ~ShowCallout();

  void componentComplete() Q_DECL_OVERRIDE;
  static void init();

signals:
  void calloutDataChanged();

private:
  Esri::ArcGISRuntime::CalloutData* calloutData() const;

private:
  Esri::ArcGISRuntime::Map* m_map = nullptr;
  Esri::ArcGISRuntime::MapQuickView* m_mapView = nullptr;
  Esri::ArcGISRuntime::CalloutData* m_calloutData = nullptr;
};

#endif // SHOWCALLOUT_H


In this topic
  1. Code