×

Discussion Board

Results 1 to 10 of 10

Thread: calender in qml

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    87

    calender in qml

    Hi All

    i want to use calneder in my application for date selection.i didnt see celender element in qml.
    any one can help me in this regard.


    Thanks

    Adnan

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: calender in qml

    If it is for date selection, you can use qml datapicker element from qtcomponents

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    87

    Re: calender in qml

    any example of it other than this.

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: calender in qml

    import QtQuick 1.1
    import com.nokia.extras 1.0
    Rectangle {
    width: 360
    height: 720
    objectName: "avTopSearchNode"
    property string date;
    signal sigDateChanged;
    DatePickerDialog {
    id: tDialog
    titleText: "Date"
    acceptButtonText: qsTr("Ok")
    onAccepted: {
    date= tMainView.getDate(tDialog.year,tDialog.month,tDialog.day); // this is some c++ connection for converting date..
    txtdt.text=date;
    }

    }
    Text {
    id: txtdt
    text: qsTr("Date")
    anchors.top: parent.top
    }
    Rectangle {
    id: rect
    width: 50
    height: 50
    color: "grey"
    anchors.centerIn: parent
    Text {
    id: txt
    text: qsTr("Date")
    anchors.centerIn: parent
    }
    MouseArea {
    anchors.fill: parent
    onClicked: {

    dateCallback();
    }

    }

    }
    function dateCallback(){

    tDialog.open();

    }



    }

  5. #5
    Registered User
    Join Date
    Mar 2012
    Posts
    87

    Re: calender in qml

    import com.nokia.extras 1.0 getting error package not found
    and DatePickerDialog getting unknown type

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: calender in qml

    what version of Qt SDK you have try importing com.nokia.extras 1.1 ??

  7. #7
    Registered User
    Join Date
    Mar 2012
    Posts
    87

    Re: calender in qml

    i have tried com.nokia.extras 1.1 but it not works.i am using Qt SDK1.1.2

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: calender in qml

    ok with 1.1.2 i guess Qt Quick Components 1.1 was not present so com.nokia.extras 1.1 definitely will not work.

    Why dont you try updating your sdk to the latest 1.2.1.

  9. #9
    Registered User
    Join Date
    Mar 2012
    Posts
    87

    Re: calender in qml

    tell me datepicker dialog is supported for symbian3?

  10. #10
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: calender in qml

    by symbian^3 do you mean symbian^3 anna or belle ??

    I guess in both of them DatePicker is supported.

Similar Threads

  1. Calender
    By Sara Ali in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2009-02-22, 15:19
  2. Calender
    By finchy in forum Symbian
    Replies: 2
    Last Post: 2008-04-11, 07:14
  3. Google Calender to Nokia Calender
    By kortenhorst123 in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2007-09-20, 07:23
  4. N95 - Calender
    By bundy in forum General Development Questions
    Replies: 1
    Last Post: 2007-09-13, 12:18
  5. calender
    By ramana9210 in forum Symbian
    Replies: 0
    Last Post: 2002-07-26, 10:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×