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

TextInput crashes qml2puppet if QtQuick Controls 2 are imported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • Windows 10
    • 460df286548cae41bdb22a5499ab442202b4e9ea

    Description

      How to reproduce:

      1) Create a new Qt Quick 2 Application using Qt Creator
      2) Add the "import QtQuick.Controls.Material 2.0" and choose Material style
      2) Drag a TextInput onto the canvas in Qt Quick Designer
      3) The qml2puppet crashes in the TextInput constructor (see stacktrace).

      Without the QtQuick.Controls 2 import TextInput does work.

      It seems like something is not properly initialized in qml2puppet (QQuickProxyTheme).

      Any ideas?

              Qt5QuickControls2d.dll!QQuickProxyTheme::themeHint(QPlatformTheme::ThemeHint hint) Line 129	C++
       	Qt5Guid.dll!themeableHint(QPlatformTheme::ThemeHint th, QPlatformIntegration::StyleHint ih) Line 62	C++
       	Qt5Guid.dll!QStyleHints::passwordMaskCharacter() Line 376	C++
       	Qt5Quickd.dll!QQuickTextInputPrivate::QQuickTextInputPrivate() Line 133	C++
       	Qt5Quickd.dll!QQuickTextInput::QQuickTextInput(QQuickItem * parent) Line 93	C++
       	[External Code]	
       	Qt5Quickd.dll!QQmlPrivate::createInto<QQuickTextInput>(void * memory) Line 108	C++
       	Qt5Qmld.dll!QQmlType::create() Line 746	C++
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes