Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-87736

InputContext.priv not typed and not documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.1, 6.0
    • Virtual Keyboard
    • None

    Description

      The only example suggest to use private property with undocummented content:

      property var inputItem: InputContext.priv.inputItem
      

      from qtvirtualkeyboar/examples/virtualkeyboard/basic/content/AutoScroller.qml

      So qmllint do not have any type info about this property and report many warnings,
      like:

      Type "var" of base "inputItem" not found when accessing member "hasOwnProperty" 
      

      It would be nice if `priv` has some type information, so code that uses qt virtual keyboard can be "statically" verified.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mitch_curtis Mitch Curtis
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes