title: QT C++ to QML can not be connected
body: <p>I have the following code:</p>
  <pre><code>class Boundaries: public QObject{
          Q_OBJECT
  
          enum Type{
              in,
              out
          };
  
          QDateTime m_startTimeBoundary{};
          QDateTime m_endTimeBoundary{};
  
          QDateTime m_from{};
          QDateTime m_to{};
  
          Q_PROPERTY(QDateTime fromDate READ getFromDate NOTIFY emitSignal1)
          Q_PROPERTY(QDateTime toDate READ getToDate NOTIFY emitSignal1)
  
          QDateTime getFromDate(){
              return m_from;
          }
  
          QDateTime getToDate(){
              return m_to;
          }
  
      public: signals:
          void emitSignal1();
  
      public:
          void initBoundaries(const QDateTime&amp; start,const QDateTime&amp; end){
              if (m_startTimeBoundary.isNull() &amp;&amp; m_endTimeBoundary.isNull()){
                  m_startTimeBoundary = start;
                  m_endTimeBoundary = end;
              }
          }
  
          void myClass(const QDateTime&amp; origin, qint64 diffMs, Type type)
          {
              //..some code..
              emit emitSignal1();
          }
  
          Q_INVOKABLE void myClassIn(const QDateTime&amp; origin, qint64 diffMs){
              myClass(origin, diffMs, Type::in);
          }
  
          Q_INVOKABLE void myClassOut(const QDateTime&amp; origin, qint64 diffMs){
              myClass(origin, diffMs, Type::out);
          }
      };
  </code></pre>
  <p>My C++ model:</p>
  <pre><code>class MyCustomModel: public QObject{
      Q_OBJECT
      ..some code..
  
      Q_PROPERTY(Boundaries* myClass READ getmyClass)
  
      Boundaries* m_myClass;
  
      Boundaries* getmyClass(){
          return m_myClass;
      }
  
      .. some other code..
  }
  </code></pre>
  <p>And here comes my QML connection problem:</p>
  <pre><code>MyButton {
          anchors.verticalCenter: timeFilterRow.verticalCenter
          onClicked:{
              var x = getDataX()
              var y = getDataY()
              myCustomModel.myClass.myClassIn(_org, diff)
          }
  }
  </code></pre>
  <p>But I get an error that says that the <code>Boundaries</code> is unknown. Could any of you help me to understand what I did wrong here? Or am I missing something?</p>