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

Creating a QDeclarativeEngine directly does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.1
    • 4.7.0
    • None
    • openSUSE Linux, Qt from 20100829
    • da038b5f74f98d73e25c10e12817cf46ad48f7f9

    Description

      I followed "Creating a QDeclarativeEngine directly" from http://doc.trolltech.com/4.7-snapshot/qmlruntime.html but
      I replaced "application.qml" with "qt/demos/declarative/calculator/calculator.qml" (qt directory is my qt git checkout).

      When I run the example I get Segmentation fault.

      Backtrace:

      #0 0xb6c345d4 in initializeDb() () from /usr/lib/libQtGui.so.4
      #1 0xb6c38d99 in QFontDatabase::load(QFontPrivate const*, int) () from /usr/lib/libQtGui.so.4
      #2 0xb6c13e9c in QFontPrivate::engineForScript(int) const () from /usr/lib/libQtGui.so.4
      #3 0xb6c29888 in QFontMetrics::height() const () from /usr/lib/libQtGui.so.4
      #4 0xb7dc94c8 in QDeclarativeTextPrivate::updateSize() () from /usr/lib/libQtDeclarative.so.4
      #5 0xb7dc9930 in QDeclarativeTextPrivate::updateLayout() () from /usr/lib/libQtDeclarative.so.4
      #6 0xb7dcbefc in QDeclarativeText::componentComplete() () from /usr/lib/libQtDeclarative.so.4
      #7 0xb7e12ede in QDeclarativeComponentPrivate::complete(QDeclarativeEnginePrivate*, QDeclarativeComponentPrivate::ConstructionState*) ()
      from /usr/lib/libQtDeclarative.so.4
      #8 0xb7e13244 in QDeclarativeComponentPrivate::completeCreate() () from /usr/lib/libQtDeclarative.so.4
      #9 0xb7e11d4f in QDeclarativeComponent::create(QDeclarativeContext*) () from /usr/lib/libQtDeclarative.so.4
      #10 0x08048c48 in main ()

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            prusnak Pavol Rusnak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes