Skip to content

RicGuerra/QTypes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QTypes

Introduction

QType is a set of Object Types through QML. Is a easily way import a libary of Types in your own QML, provides many visual components and features to manipulate data.

Getting started

Qt version

Requires Qt 5.12 or highter

Object Types

Type Description
Accordion Displays collapsible content panels in a limited space.
Badges Small text container.
DropDown Toggleable, contextual Menu.
ImageLoader Visual status Image Loader.
Icon Material Icons.
SearchModel Simple search in data models.

Quick start

  • Copy the folder QTypes/ to root of your project
  • Pro file Dependencies:
    QT += quickcontrols2
    RESOURCES += QTypes/QTypes.qrc

Qml Implementation

Accordion example:

    import "qrc:/QTypes" as QTypes

    Item {
        QTypes.Accordion {
            model: ListModel {
                  ListElement { title: "My title 1"; content: "Text content 1" }
                  ListElement { title: "My title 2"; content: "Text content 2" }
            }
        }
    }