Code Monkey home page Code Monkey logo

popupframe's Introduction

PopupFrame

Popup frame for Qt[Qml] (Qml内部窗口)

img

How to use(这样使用)

1、Create a Qml project(创建一个Qml项目)

Use material theme(使用Material主题)
Or copy qtquickcontrols2.conf to your project(或者复制qtquickcontrols2.conf到你的项目中)

2、import PopupFrame(导入PopupFrame)

// Copy qml/PopupFrame to your project(复制 qml/PopupFrame 到你的项目中)
// ** is relative path(**是相对路径)
import "**/PopupFrame"

Or use .pro[QML_IMPORT_PATH], copy to correct directory(或者使用.pro文件的QML_IMPORT_PATH,并复制到正确的目录下)
// **.**.** is correct path[QML_IMPORT_PATH/cn/knoyo/PopupFrame => cn.knoyo.PopupFrame]
// **.**.**是目录结构[例如QML_IMPORT_PATH/cn/knoyo/PopupFrame 就是 cn.knoyo.PopupFrame]
import **.**.** 1.0

3、Use PopupFrame(使用PopupFrame)

PopupFrame {
    id: popupFrame3
    x: 500
    y: 20
    nowPoint: Qt.point(500,20)
    minWidth: 200
    minHeight: 300
    width: 200
    height: 300
    maxWidth: 200
    maxHeight: 300
    title: "PopupFrame3"
    PopupFrameContentItem {
        Text {
            anchors.centerIn: parent
            text: qsTr("PopupFrame3 content")
        }
    }
}

You can refer to Demo, which is really very simple.(你可以参考Demo使用,这真的很简单)

popupframe's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.