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. [Solved] Change between Views

[Solved] Change between Views

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.1k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    demonking
    wrote on last edited by
    #1

    Hello Community,

    i'm programming with my team a hobby Project.
    We decided to use QML because we use an embedded system and you can easily create
    some Designs.

    But now we have a problem.
    Each of our qml files is a View.

    The Application start on a Main Frame with some Buttons.
    When i click on a Button it should change the View to the Content of 1 qml.
    This should also be able to go back to the Main View.
    Is this possible only with qml?

    The Problem i could see is, that we have to connect the ClickEvents with our C++ application to execute some function.

    Edit:

    Ok , now i have a solution, but a other problem.

    main.qml:
    @
    MainMenu{}
    @
    MainMenu.qml:
    @
    StartGame{}
    LoadGame{}
    Settings{}
    @
    StartGame,LoadGame,Settings are themself qml files.

    When i click on StartGame{} there pop a popup window an ask "really" .
    if not i want go back to the MainMenu.
    The Problem is, that i get an error that the reference is undefined

    A Loader has fixed my problem ;)

    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