Thanks guys.. Did work, problem with uninitialized pointer in constructor & one more silly mistake

Qt Code:
  1. 1. model::model() : m_parent(nullPtr)
  2. 2. int model::childCount()
  3. {
  4. m_childs.count; //did put return here but, compiler did not warn
  5. }
To copy to clipboard, switch view to plain text mode