Forum Nokia - QML Templates



  • Via "Forum Nokia":https://www.forum.nokia.com/Develop/Qt/QML_templates/?sf1269404=1

    QML UI Templates library will provide commonly used UI-components for generic use with QML. This library is not meant to replace the official Qt Components-project but to provide larger templates for developers to take a look and utilize in their own projects.

    The library include:

    • Accordion List
    • Tab Bar
    • Wait Indicator
    • Splash Screen
    • Modal Dialog
    • Modal Note
    • PopUp
    • Date Picker
    • Persistent Model
    • Switch

    More "info":https://projects.forum.nokia.com/QMLTemplates

    !http://realnorth.net/share/qml_templates.png(QML Templates)!



  • Great initiative!

    Could you please add licensing info so I know how the components can be used?

    Preferable "WTFPL":http://en.wikipedia.org/wiki/WTFPL or similar :)



  • If you download the package (the zip file) it contains a licence.txt



  • Very nice initiative indeed! Thanks for sharing this, I think it is really needed.



  • They look very cool. I will try them out very shortly. Thank you.



  • Hi!
    Thanks a lot for nicely done templates! I've been playing with your ModalDialog and found out following. I have this code:
    @Rectangle {
    id: mainWindow
    width: 360
    height: 360

    ModalDialog{
        id: quitDialog
        anchors.fill: mainWindow
        text: "Do you really want to quit?"
        onAccepted: {
            Qt.quit();
        }
    }
    
    ModalDialog{
        id: otherDialog
        anchors.fill: mainWindow
        text: "Some text"
    }
    
    Button {
        id: quitButton
        text: "Close"
        anchors.top: mainWindow.top;  anchors.right: mainWindow.right
        onClicked: {
            quitDialog.show();
        }
    }
    
    Button{
        id: otherButton
        text: "Other"
        anchors.top: mainWindow.top; anchors.left: mainWindow.left
        onClicked: {
            otherDialog.show();
        }
    }
    

    }
    @

    But i am still able to click on both buttons, even though they shouldn't be clickable as ModalDialog is shown (they should be behind Fader). I'v been working on my own modal dialog but i ended up with the same behaviour as this:)

    Edit: hmmm i've figured out what was wrong, it depends on order. If I defined buttons before modal dialogs it works as desired. I didn't expect such behavior.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.