Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. qtcharts iOs error : unknown method return type: QAbstractAxis*
Forum Updated to NodeBB v4.3 + New Features

qtcharts iOs error : unknown method return type: QAbstractAxis*

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 914 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mathben
    wrote on last edited by
    #1

    Hi,
    I am trying to manage QtCharts in QML with c++.
    I only got this error on iOs, but no error on android, linux, osx.

    "Unknown method return type: QAbstractAxis*"

    Why only on iOs? If QtCharts was missing, we suppose to got error earlier.

    header file :
    class CustomChart : public QObject {
    Q_PROPERTY(QtCharts::QAbstractAxis* x_axis WRITE setXAxis READ xAxis);
    QtCharts::QAbstractAxis* xAxis();
    void setXAxis(QtCharts::QAbstractAxis* axis);
    [...]
    }

    qml :
    [...]
    ChartView {
    id: chartViewCustom
    Component.onCompleted: {
    customChart.x_axis = chartViewCustom.axisX(chartViewCustom.series(0))
    }
    axisX: DateTimeAxis {
    tickCount: 4
    minorGridVisible: true
    color: "black"
    format: "mm:ss"
    }
    }
    [...]

    Someone see the problem? I have a lot of code, so i try to focus with interraction of QAbstractAxis.
    Thanks for your help.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SamGrant
      wrote on last edited by
      #2

      I had a similar issue with iOS and QtCharts...

      I had to add this to my *.pro file to get it to work (the 'charts' and QTPLUGIN line...):

      QT += core qml quick widgets network websockets charts
      QTPLUGIN += qt5charts

      --Sam

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved