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. QML MultiEffect garbled error message

QML MultiEffect garbled error message

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 309 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.
  • Y Offline
    Y Offline
    Yihua Liu
    wrote on last edited by
    #1

    In my qml file, I write

    TreeView {
    id: treeView
    property int lastIndex: -1
    ...
    delegate: TreeViewDelegate {
    id: viewDelegate
    ...
    MultiEffect {
        id: iconOverlay
        anchors.fill: arrowIcon
        source: arrowIcon
        colorization: 1.0
        brightness: 1.0
        colorizationColor: {
            const isTable = viewDelegate.index === treeView.lastIndex && !viewDelegate.hasChildren;
            if (isTable) {
                return Qt.lighter(Colors.database, 3)
            }
            const isExpanded = viewDelegate.expanded && viewDelegate.hasChildren;
            return isExpanded ? Colors.color2 : Colors.database
        }
    }
    ...
    }
    ...
    }
    

    where in Colors.qml I defined

    import QtQuick
    
    pragma Singleton
    
    QtObject {
        ...
        readonly property color database: "#383737"
        ...
    }
    

    When I run my program, the debugger shows error messages like
    QML MultiEffect: �޷�ê�������Ǹ�����ͬ������Ŀ��
    or
    QML MultiEffect: ???ê???????????????????????

    I have tried to link both Quick and QuickControls2 but the problem still occurs. I'm using Qt 6.8.0 with MSVC 2022 (AMD64).

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      Yihua Liu
      wrote on last edited by
      #2

      Fixed by modifying arrowIcon

      1 Reply Last reply
      0
      • Y Yihua Liu has marked this topic as solved on

      • Login

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