Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML Only in Mobile Development[SOLVED]
Forum Updated to NodeBB v4.3 + New Features

QML Only in Mobile Development[SOLVED]

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 657 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.
  • E Offline
    E Offline
    ErayT
    wrote on last edited by
    #1

    Guys,

    I am new here. I just wanted to examine the mobile development process and benefits of Qt. I have created and run a basic project for android. It was quite successful for me so far. I have found the framework clear and enjoyable enough. However, I have a question which is really unclear its answer for me.

    In the basic hello world example project, the whole functionality and specifics are set by the qml structure.
    Like :

    @ menuBar: MenuBar {
    Menu {
    title: qsTr("File")
    MenuItem {
    text: qsTr("&Open")
    onTriggered: console.log("Open action triggered");
    }
    MenuItem {
    text: qsTr("Exit")
    onTriggered: Qt.quit();
    }
    }
    }@

    I wonder that if it is possible to implement the same code in C++ only and how?

    EDIT:
    Of course, we can! I have found out how to do in a basic way. I am sorry for this silly question. If I can figure out how to remove this post, I will.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on last edited by
      #2

      You cannot use "Qt Quick Scene Graph":http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph.html if you do not use QML.

      Therefore you need to think whether you are able to accept performance loss.

      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