Giter Club home page Giter Club logo

qmltoolbox's Introduction

qmltoolbox - QML item library for cross-platform graphics applications

qmltoolbox's People

Contributors

cgcostume avatar jopyth avatar julkw avatar mjendruk avatar sbusch42 avatar scheibel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

wyyrepo

qmltoolbox's Issues

debug view

add debug switch in settings that renders any qml item with an outline

PropertyEditor.qml attempts to override final property in Qt 5.7

On Ubuntu 17.04 using Qt 5.7, the following error occurs:

willy@willy-CM:~/cginternals/gloperate/build-debug$ ./gloperate-viewerd 
QQmlApplicationEngine failed to load component
~/cginternals/gloperate/data/gloperate/qml/Viewer.qml:304 Type PropertyEditor unavailable
~/cginternals/qmltoolbox/data/qmltoolbox/qml/QmlToolbox/PropertyEditor/PropertyEditor.qml:21 Cannot override FINAL property

Workaround: commenting out the property or switching the Pane (line 13) into a Row.

Qt 5.7 Slider updateValueWhileDragging is missing

It seems like the Slider in QtQuick.Controls 2.x is missing the updateValueWhileDragging property: https://doc.qt.io/qt-5/qml-qtquick-controls2-slider.html

On my system (Ubuntu 17.04, Qt 5.7), the following errors occur:

./build-debug/gloperate-viewerd 
QQmlApplicationEngine failed to load component
file://[...]/gloperate/data/gloperate/qml/Viewer.qml:304 Type PropertyEditor unavailable
file://[...]/qmltoolbox/data/qmltoolbox/qml/QmlToolbox/PropertyEditor/PropertyEditor.qml:132 Type EditorProxy unavailable
file://[...]/qmltoolbox/data/qmltoolbox/qml/QmlToolbox/PropertyEditor/EditorProxy.qml:52 Type EditorNumber unavailable
file://[...]/qmltoolbox/data/qmltoolbox/qml/QmlToolbox/PropertyEditor/EditorNumber.qml:19 Type Slider unavailable
file://[...]/qmltoolbox/data/qmltoolbox/qml/QmlToolbox/Controls/Slider.qml:16 Cannot assign to non-existent property "updateValueWhileDragging"

Is this code, which is intended to get used in Qt 5.5 and above actually working for anyone?

Qt 5.9 Compatibility

I get the following errors when trying to run gloperate-viewer:

QQmlApplicationEngine failed to load component
file:///E:/projects/gloperate.git/data/gloperate/qml/Viewer.qml:304 Type PropertyEditor unavailable
file:///E:/projects/qmltoolbox.git/data/qmltoolbox/qml/QmlToolbox/PropertyEditor/PropertyEditor.qml:143 Type EditorProxy unavailable
file:///E:/projects/qmltoolbox.git/data/qmltoolbox/qml/QmlToolbox/PropertyEditor/EditorProxy.qml:58 Type EditorNumber unavailable
file:///E:/projects/qmltoolbox.git/data/qmltoolbox/qml/QmlToolbox/PropertyEditor/EditorNumber.qml:19 Type Slider unavailable
file:///E:/projects/qmltoolbox.git/data/qmltoolbox/qml/QmlToolbox/Controls/Slider.qml:18 Cannot override FINAL property

This is because Qt 5.9 introduced a live property for the Slider type (cf. http://doc.qt.io/qt-5/qml-qtquick-controls2-slider.html#live-prop), which is declared final.
I don't know if there are any further incompatibilities.

Using Qt 5.9.1 on Visual Studio 2017 Win64

Recursion error in Popup.qml

In Popup.qml line 82 it seems like there is a recursion error during destruction.
If this line gets commented out everything works as expected, leaving this line as source code results in non-terminating programs.

    Window.onContentItemChanged: 
    {
        if (Window.contentItem !== null) 
        {
            root.parent = Window.contentItem; // < Line 82
            popup.parent = Window.contentItem;

            /**
             * TODO: Unfortunately, this doesn't work. Possible explanation:
             * If parent is an ancestor of a item that hasn't been added 
             * to the item hierarchy yet, mapFromItem() fails. This is for example
             * the case for the contentItem in Control.qml.
             */
            popup.x = Qt.binding(function() { return root.parent.mapFromItem(privateItem.parentItem, root.x, root.y).x; });
            popup.y = Qt.binding(function() { return root.parent.mapFromItem(privateItem.parentItem, root.x, root.y).y; });
        }
    }

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.