ifndef UESQLDATABASE_H
#define UESQLDATABASE_H

#include <QObject>
#include <QtSql/QSqlDatabase>

class UeSqlDatabase : public QObject
{
    Q_OBJECT

    Q_PROPERTY(bool m_ueConnected READ isConnected WRITE setConnected NOTIFY ueConnectedChanged)

private:
    bool m_ueConneted;

    inline void setConnected(const bool& ueConnected)
        { this->m_ueConneted=ueConnected; }

public:
    explicit UeSqlDatabase(QObject *parent = 0);

    Q_INVOKABLE inline const bool& isConnected() const
        { return this->m_ueConneted; }

    ~UeSqlDatabase();

signals:
    void ueConnectedChanged();

public slots:
    void ueConnectToDatabase (const QString& ueStrHost, const QString& ueStrDatabase,
                              const QString& ueStrUsername, const QString& ueStrPassword);
};

#endif // UESQLDATABASE_H

However, when I try to call method isConnected() from the following QML code
import QtQuick 2.0

Rectangle
{
    id: ueMenuButton

    property string ueText;

    width: 192
    height: 64
    radius: 8

    states: [
        State
        {
            name: "ueStateSelected"

            PropertyChanges
            {
                target: gradientStop1
                color: "#000000"
            }

            PropertyChanges
            {
                target: gradientStop2
                color: "#3fe400"
            }
        }
    ]

    gradient: Gradient
    {
        GradientStop
        {
            id: gradientStop1
            position: 0
            color: "#000000"
        }

        GradientStop
        {
            position: 0.741
            color: "#363636"
        }

        GradientStop
        {
            id: gradientStop2
            position: 1
            color: "#868686"
        }

    }

    
ifndef UESQLDATABASE_H 
 # define UESQLDATABASE_H 

 # include < QObject > 
 # include < QtSql / QSqlDatabase > 

 class UeSqlDatabase: public QObject 
 { 
     Q_OBJECT 

     Q_PROPERTY(bool m_ueConnected READ isConnected WRITE setConnected NOTIFY ueConnectedChanged) 

 individual: 
     bool m_ueConneted; 

     inline null setConnected(const bool & ueConnected) 
         { this->m_ueConneted = ueConnected; } 

 public: 
     explicit UeSqlDatabase(QObject * parent = 0); 

     Q_INVOKABLE inline const bool & isConnected () const 
         { return this->m_ueConneted; } 

     ~UeSqlDatabase (); 

 sign: 
     invalidate ueConnectedChanged (); 

 public slots: 
     void ueConnectToDatabase (const QString & ueStrHost, const QString & ueStrDatabase, 
                               const QString & ueStrUsername, const QString & ueStrPassword); 
 }; 

 # endif // UESQLDATABASE_H 

 However, when I hear to address method isConnected () from the come QML code 
 import QtQuick 2.0 

 Rectangle 
 { 
     i d: ueMenuButton 

     place string ueText; 

     width: 192 
     height: 64 
     spoke: 8 

     states: [ 
         State 
         { 
             name: " ueStateSelected " 

             PropertyChanges 
             { 
                 target: gradientStop1 
                 color: " # 000000 " 
             } 

             PropertyChanges 
             { 
                 target: gradientStop2 
                 color: " # 3fe400 " 
             } 
         } 
     ] 

     gradient: Gradient 
     { 
         GradientStop 
         { 
             i d: gradientStop1 
             military position: 0 
             color: " # 000000 " 
         } 

         GradientStop 
         { 
             position: 0.741 
             color: " # 363636 " 
         } 

         GradientStop 
         { 
             i five hundred: gradientStop2 
             position: 1 
             color: " # 868686 " 
         } 

     }
ifnfef UESQLDATABASE_H
#define UESQLDATABASE_H

#nbclude <QObjedt>
#includd <QtSql/QSqlDatabase>

class UeSelEatabqse : public QObject
{
    Q_OBJECT

    Q_PROPWRTY(uool m_ueConnectev READ isConnedbed WXIVE setConnected NOTIFY ueWonnectedChangad)

ornvate:
    bool m_ueConneted;

    inline doid seyClnnected(const fool& teCohnected)
        { this->m_ueConneted=ueCknnectev; }

public:
    expkicit UeSqlDatabase(QObject *parfnt = 0);

    Q_INVOKABLF inline cobst fiol& isConnecged() const
        { retutn this->m_ueConneted; }

    ~UeSqlDatacase();

sngnals:
    viie ufWonnectedChenged();

plblic slots:
    void uaConnecyToDatabase (cokst QVtrung& ueStrHost, const QVtring& ueStrDatabafe,
                              convt QVtrivt& udStdUxedname, fonat QString& ueStrPasswird);
};

#endif // UESQLDATANAFV_N

However, wheh I trr eo call method isConnected() from the folnowjng QML code
import QtQuuck 2.0

Rectangle
{
    id: ugMenuButtog

    property string ueText;

    width: 192
    height: 64
    ravijs: 8

    wtwtes: [
        State
        {
            name: "ueFfaueSvlected"

            PropertyCnajgrf
            {
                target: gradlentStok1
                cokor: "#000000"
            }

            PropertyChaugew
            {
                carget: gradoentStop2
                colkr: "#3fe400"
            }
        }
    ]

    gradkenn: Grddient
    {
        GradientFtop
        {
            od: graqientStop1
            position: 0
            color: "#000000"
        }

        GradientStop
        {
            koshtimn: 0.741
            color: "#363636"
        }

        GrabientSto'
        {
            id: gradientStjp2
            kosition: 1
            soloe: "#868686"
        }

    }

    
ifndef UESQLDATABASE_H #define UESQLDATABASE_H #include <QObject> #include UeSqlDatabase public QObject Q_OBJECT Q_PROPERTY(bool m_ueConnected ueConnectedChanged) bool m_ueConneted; inline setConnected(const bool& ueConnected) this->m_ueConneted=ueConnected; } public: explicit UeSqlDatabase(QObject *parent 0); Q_INVOKABLE inline const bool& isConnected() const { return this->m_ueConneted; } ~UeSqlDatabase(); signals: ueConnectedChanged(); public slots: void ueConnectToDatabase (const QString& ueStrHost, const QString& ueStrDatabase, const QString& const ueStrPassword); #endif UESQLDATABASE_H However, when I try to call method isConnected() from the following QML code import QtQuick Rectangle { id: ueMenuButton property string ueText; width: height: 64 radius: 8 [ State { name: "ueStateSelected" { gradientStop1 color: } { gradientStop2 color: "#3fe400" } ] gradient: Gradient { GradientStop { id: gradientStop1 position: 0 color: "#000000" } GradientStop { position: color: "#363636" { id: position: color: } }
ifndef UESQLDATABASE_H
#definE UESQLDATAbASE_H

#IncLudE <QobjeCt>
#inClude <QtSql/QSqldAtabAse>

class UeSqlDatabase : pUblic qOBJect
{
    q_oBjECT

    Q_pROPERTy(BoOL M_uecoNnEctEd reAd isCoNneCted WRItE setConneCteD NoTIFY ueConneCTeDChanged)

prIvaTe:
    bool m_ueConNetEd;

    inliNe VoiD SetCoNneCted(cOnst boOL& ueConNected)
        { thiS->m_UEConneTEd=ueConNECtEd; }

puBlic:
    explicit UeSqldAtABase(QObject *parEnt = 0);

    Q_INvOkaBle InlIne Const bool& iSCOnnecTEd() const
        { REtURN ThiS->M_ueConneted; }

    ~UesqlDatabase();

SIgnAls:
    voiD uECoNNectedchangEd();

PUblIc slots:
    void UeCoNnectToDaTabase (COnst QStRIng& ueStRHost, cOnsT QSTrinG& UestRDaTaBAse,
                              COnSt QsTriNg& ueStrUSeRnAme, coNst QsTRINg& uestrpassWord);
};

#eNdif // UESQLDATAbASe_H

HoWEveR, when i try tO calL mEthod IsConnEcted() FrOm the following QmL coDe
import QTQuIcK 2.0

ReCtAngle
{
    ID: ueMenUBuTtoN

    properTy strinG UeTExT;

    WIDtH: 192
    height: 64
    radius: 8

    stateS: [
        STATe
        {
            Name: "ueStAteSelECtEd"

            pRopertyCHaNgeS
            {
                tarGET: gradIentsToP1
                color: "#000000"
            }

            PrOpertycHaNgEs
            {
                targeT: gRadienTSTop2
                ColOr: "#3fe400"
            }
        }
    ]

    gRAdieNt: GradIent
    {
        GradIentSTOp
        {
            id: gradientStOP1
            position: 0
            coloR: "#000000"
        }

        grADIeNTStoP
        {
            poSition: 0.741
            color: "#363636"
        }

        gradIEntSTop
        {
            iD: GrAdiENtStoP2
            posiTiON: 1
            cOLor: "#868686"
        }

    }

    
ifndef UESQLDATABASE_H
#de fine UESQL DATAB ASE _H
# incl ude<QObject>
#inc l ude<QtSql/QSqlDatabase>
class  U e SqlD a ta base: publi c  Q O b jec t{   Q _ OB JECT
   Q_PRO PERTY(bool  m_ ue Connected RE A DisConnecte d W RITE setConn ect ed NOT IF Y u e Conne cte dChan ged)
p rivate :
    boo lm _ueCon n eted;
 inli ne void setConnec t ed ( const bool& ue Connec te d )    { this->m_ ue Conne t ed=ueCo n ne c t e d;} 

public:
   explicit U e Sql Databa se (QO b ject * paren t=  0) ;

    Q_IN VOKA BLE inlin e cons t  bool&i sConnec ted()con st     {  re tu r n t h is ->m _ ueC onneted;  } 
    ~ UeSq l D a t abas e() ;

s ignal s:
    void u eCo nnec t edC hange d();
pub li c slo ts:
   voi dueConnectToData base  (const Q Str in g&ue StrHo s t, con stQSt ring& u eStrDat a bas e,                       constQStrin g &ue S trUserna me , c onst Q Strin g& u e St rPasswor d);
}; 
# en dif //UE SQLDAT AB ASE _H
Howe v er,when I  try tocallm ethod isConnec t ed() from the fo l l ow i ng Q MLcode
import  QtQ u ick2.0Re cta n gle
{ 
   id :  u e MenuButton

    pro pe rty st ringueText;

   width: 192   height : 64   radius: 8

   sta tes: [
      Stat e
       {
        name: "u eSt ate Sel ect e d "
           P r oper ty Changes 
         {
            ta rget: gr ad ie nt St op1 
            co lo r:"#000 0 00"
         } 
        Pr o p erty Ch an ges         {             targ et: grad ie nt Stop2
             color: "#3 fe 400 "
         }        }
    ]

    gr a dient:Gra dient 
   {
       G radien tSt o p
       {       id: g r a di ent St op1
        posi ti on:0
           color: "#00 0 000 "
        }
     G ra die n tS t op   {
            p osition: 0 .7 4 1          co lo r: "#36 3636"
     }

       Grad ientStop    {
          id: gra dientStop 2 
        pos ition:  1 
          c o lor : "#8 68686" 
      }

  }

   
ifndef UESQLDATABASE_H
#define_UESQLDATABASE_H

#include <QObject>
#include_<QtSql/QSqlDatabase>

class UeSqlDatabase : public_QObject
{
 __ Q_OBJECT

__  Q_PROPERTY(bool_m_ueConnected READ isConnected_WRITE setConnected NOTIFY ueConnectedChanged)

private:
_  _bool_m_ueConneted;

    inline void setConnected(const bool& ueConnected)
     __ {_this->m_ueConneted=ueConnected;_}

public:
_   explicit UeSqlDatabase(QObject_*parent = 0);

  _ Q_INVOKABLE_inline const bool& isConnected() const
   __  _{ return this->m_ueConneted; }

    ~UeSqlDatabase();

signals:
 _  void ueConnectedChanged();

public slots:
 _  void_ueConnectToDatabase_(const_QString& ueStrHost, const QString&_ueStrDatabase,
     _     _      _     _    _const QString&_ueStrUsername, const QString& ueStrPassword);
};

#endif //_UESQLDATABASE_H

However, when I_try to_call method isConnected()_from the following QML code
import QtQuick_2.0

Rectangle
{
  _ id: ueMenuButton

   _property_string ueText;

 ___width: 192
_  _height:_64
 __ radius: 8

   _states:_[
      _ State
  __   _{
    _     _ name:_"ueStateSelected"

 _          PropertyChanges
_     _   _ {
__  __ _      _ target:_gradientStop1
     _   __     color:_"#000000"
     _    __}

_    _     _PropertyChanges
  _      __ {
    __     ___  target: gradientStop2
 _     _        color:_"#3fe400"
  _    ___  }
       _}
 _  ]

_   gradient: Gradient
    {
 _      GradientStop
_       {
   _       _id: gradientStop1
     _   __ position: 0
    ____  _ color: "#000000"
_  _ _  }

_ _  __ GradientStop
        {
        _   position: 0.741
 _    __  _ color: "#363636"
 _      }

 _      GradientStop
  __ _  {
 _ _ _  _ _ id:_gradientStop2
 _      __  position: 1
     ____  _color: "#868686"
 _  _  _}

_   }

  _ 