IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Voir le flux RSS

Jiyuu

  1. [QML] Comment créer un calendrier en popup

    par , 14/04/2015 à 14h21
    Voici un code permettant d'afficher en popup un calendrier et de retourner la date sélectionnée dans le format voulu :

    Code qml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    import QtQuick 2.4
    import QtQuick.Controls 1.3
    import QtQuick.Dialogs 1.2
     
    Dialog {
        id: dateDialog
        width : 400
        height : 350
        visible: true
        title: "Sélectionner une date"
        standardButtons: StandardButton.Ok | StandardButton.Cancel
     
        onAccepted: console.log("Date
    ...
    Tags: calendrier, popup, qml
    Catégories
    Qt Quick - QML