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. QDeclartiveItem-Qt Quick 1 or QQuickItem- Qt Quick 2.
Forum Updated to NodeBB v4.3 + New Features

QDeclartiveItem-Qt Quick 1 or QQuickItem- Qt Quick 2.

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 1.3k Views 2 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    Try incorporate qml into qt C
    Notice when i add new (c++ class), after entering class name
    I get to choose QDeclartiveItem-Qt Quick 1 or QQuickItem- Qt Quick 2.

    Which one should i choose?

    B 1 Reply Last reply
    0
    • jeremy_kJ Offline
      jeremy_kJ Offline
      jeremy_k
      wrote on last edited by
      #2

      It depends on a number of factors, such as the minimum Qt version being targeted, OpenGL capability of the hosting system, use of existing Quick items, and more.

      If none of this sounds like an issue (ie Qt 5 minimum, no OpenGL support concerns, starting from scratch), go for Quick 2.

      Asking a question about code? http://eel.is/iso-c++/testcase/

      1 Reply Last reply
      0
      • H Offline
        H Offline
        houmingc
        wrote on last edited by houmingc
        #3

        It reply, QQuickItem: No Such file or directory.
        What should i add in project?

        i added QT += quick

        expected class-name before { token

        jeremy_kJ 1 Reply Last reply
        0
        • H houmingc

          Try incorporate qml into qt C
          Notice when i add new (c++ class), after entering class name
          I get to choose QDeclartiveItem-Qt Quick 1 or QQuickItem- Qt Quick 2.

          Which one should i choose?

          B Offline
          B Offline
          Buttink
          wrote on last edited by
          #4

          @houmingc Unless you are working on a legacy system where you do not have an opengl context (your machine has to be so old its not funny), use QtQuick2. QtQuick1 AKA QtDeclarative is actually deprecated in Qt 5.5.

          1 Reply Last reply
          0
          • H houmingc

            It reply, QQuickItem: No Such file or directory.
            What should i add in project?

            i added QT += quick

            expected class-name before { token

            jeremy_kJ Offline
            jeremy_kJ Offline
            jeremy_k
            wrote on last edited by
            #5

            It's hard to guess without more context, but if you're using Creator, try the "Run qmake" build option before building.

            Asking a question about code? http://eel.is/iso-c++/testcase/

            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