小编Bup*_*upa的帖子

QML Loader ... 如何卸载或删除加载到 Loader 元素的 qml 页面

我已将 MyItem.qml 作为源组件加载到 Loader 元素上。现在我想从 Loader 元素中删除或卸载该页面。我试图设置 source : "" & sourceComponent : "" ,还有 sourceComponent : "undefined"。但它没有用

qt qml qqmlapplicationengine

5
推荐指数
2
解决办法
5259
查看次数

如何使滚动条在QML中的Flckable上始终可见

我想使Flickable区域中的Scrollbar.vertical始终可见。当前,单击后可见。文本区域也与滚动条重叠。我如何在以下QML代码中用文本区域分隔滚动条在此处输入图片说明

import QtQuick 2.0
import QtQuick.Controls 2.0

Flickable {
    id: flickable
    anchors.fill: parent


    TextArea.flickable: TextArea {
        text: "The Qt QML module provides a framework for developing applications and libraries with the QML language.
It defines and implements the language and engine infrastructure, and provides an API to enable application developers to
extend the QML language with custom types and integrate QML code with JavaScript and C++.

The Qt QML module provides both a QML API and a C++ API.
Note …
Run Code Online (Sandbox Code Playgroud)

qt qml flickable

4
推荐指数
2
解决办法
5127
查看次数

标签 统计

qml ×2

qt ×2

flickable ×1

qqmlapplicationengine ×1