View Single Post
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#20
Originally Posted by ajalkane View Post
You should rename it to MainView.qml. Remove the imports, they're automatically imported. But the naming is important, ie. capital start letter.

So after that you can use it in main.qml like:

Code:
PageStackWindow {
  ...
  MainView {
    ...
  }
}
OK, thanks for help. Seems that I used it wrong (as if it was #include and extern declaration in C++), thinking it was already declared.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here