Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt.fontFamilies() and QQmlEngine::setContextForObject(): Object already has a QQmlContext

Qt.fontFamilies() and QQmlEngine::setContextForObject(): Object already has a QQmlContext

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 706 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.
  • B Offline
    B Offline
    BVladimir
    wrote on last edited by
    #1

    Greetings to all

    I have a working qml with:
    "
    ListView {
    id: lv
    anchors.fill: parent
    ...
    model: Qt.fontFamilies()
    ...
    "
    in the Qt Creator debugging mode, the QML Debugger console window displays "QQmlEngine::set the context for the object(): The object already has a QQmlContext \Users\qt\work\qt\qtdeclarative\src\qml\qml\qqmlengine.cpp : 1307". It looks likeе the line "model: Qt.fontFamilies()" is to blame.
    Why ?

    1 Reply Last reply
    1

    • Login

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