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. Controls 2 handling input with C++?

Controls 2 handling input with C++?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 750 Views
  • 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.
  • A Offline
    A Offline
    adutzu89
    wrote on 13 May 2017, 10:03 last edited by
    #1

    On the differences page between controls 1 and 2 it states the follow:

    In many cases, the internal state of a control can be more efficiently processed in C++. For example, handling input events in C++ makes a difference for controls that would otherwise need to create internal MouseAreas and attached Keys objects.

    Is this referring on how the controls input are handled, or that we can handle controls input with C++?
    I couldn't find any aditional info on this so I am curious.

    E 1 Reply Last reply 15 May 2017, 07:39
    0
    • A adutzu89
      13 May 2017, 10:03

      On the differences page between controls 1 and 2 it states the follow:

      In many cases, the internal state of a control can be more efficiently processed in C++. For example, handling input events in C++ makes a difference for controls that would otherwise need to create internal MouseAreas and attached Keys objects.

      Is this referring on how the controls input are handled, or that we can handle controls input with C++?
      I couldn't find any aditional info on this so I am curious.

      E Offline
      E Offline
      Eeli K
      wrote on 15 May 2017, 07:39 last edited by
      #2

      @adutzu89 I think it's about internal private implementation, not about public API.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jpnurmi
        wrote on 15 May 2017, 09:09 last edited by
        #3

        That sentence in the docs seems a bit vague and confusing. It was apparently extracted from the http://blog.qt.io/blog/2015/03/31/qt-quick-controls-for-embedded/ blog post and copied to the docs without providing enough context.

        What it tries to say, essentially, is that while Qt Quick Controls 1 tried to do as much possible in QML, Qt Quick Controls 2 moved all the logic and event handling to C++ instead. If you implement custom controls of your own, I'd highly recommend doing the same.

        1 Reply Last reply
        1

        1/3

        13 May 2017, 10:03

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved