Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Error executing Calendardemo project given in Qt Docs
Forum Updated to NodeBB v4.3 + New Features

Error executing Calendardemo project given in Qt Docs

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 3 Posters 3.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    imrrk
    wrote on last edited by
    #1

    Hello freinds,I am trying to run the calendardemo project given in qt docs..But I am getting few errors which i am not able to figure it out..
    The errors are in the below function
    @void CalendarDemo::deleteAllEntries()
    {
    // Fetch all the entries
    QList<QOrganizerItemLocalId> ids = m_manager->itemIds();

    if(ids.count()) {
        m_remReq.setItemIds(ids);
        m_remReq.setManager(m_manager);
        m_remReq.start();
    }
    

    }@

    the errors are as follows

    bq. 409: error: 'QOrganizerItemLocalId' was not declared in this scope
    409: error: template argument 1 is invalid
    409: error: cannot convert 'QListQtMobility::QOrganizerItemId' to 'int' in initialization
    411: error: request for member 'count' in 'ids', which is of non-class type 'int'
    412: error: no matching function for call to 'QtMobility::QOrganizerItemRemoveRequest::setItemIds(int&)' candidates are: void QtMobility::QOrganizerItemRemoveRequest::setItemIds(const QListQtMobility::QOrganizerItemId&)

    regards
    imrrk

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

      Do you install Qt Mobility? Error: ‘QOrganizerItemLocalId’ is that you didn't include the header file.

      Chuck

      1 Reply Last reply
      0
      • I Offline
        I Offline
        imrrk
        wrote on last edited by
        #3

        Hello Chuck.Gao,I have latest qtsdk 1.1 which come with qt mobility 1.1.3..
        their is no such header file by name QOrganizerItemLocalId’

        regard
        imrrk

        1 Reply Last reply
        0
        • I Offline
          I Offline
          imrrk
          wrote on last edited by
          #4

          hello friends..Now I am able to run in simulator but when i try to run it on My symbian^3 device I get a error.Like below

          bq. error: Automatic patching failed at C:\NokiaQtSDK\Symbian\SDKs\Symbian3Qt473\bin\createpackage.pl line 357.

          Whether anybody facing this problem..please help me out

          regards
          imrrk

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Chuck Gao
            wrote on last edited by
            #5

            What's the line 357? Look into it :)

            Chuck

            1 Reply Last reply
            0
            • I Offline
              I Offline
              imrrk
              wrote on last edited by
              #6

              its solved..actually that error is something unrelated error i guess..because the my .pro file contained this

              @symbian: {
              TARGET.CAPABILITY = ReadUserData
              WriteUserData
              ReadDeviceData
              }
              @
              So when i commented the ResdDeviceData,the error got solved..

              Regards
              imrrk

              1 Reply Last reply
              0
              • L Offline
                L Offline
                leon.anavi
                wrote on last edited by
                #7

                [quote author="imrrk" date="1307021538"]
                So when i commented the ResdDeviceData,the error got solved..
                [/quote]
                I guess that the error appeared because ReadDeviceData is part of the "Extended capabilities":http://wiki.forum.nokia.com/index.php/Capabilities - approved by Symbian Signing and you cannot use it with self signed applications.

                Any way well done for solving the issue :)

                http://anavi.org/

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved