Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Newbie:Doubt on QML coding.
Forum Updated to NodeBB v4.3 + New Features

Newbie:Doubt on QML coding.

Scheduled Pinned Locked Moved QML and Qt Quick
10 Posts 5 Posters 5.4k 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.
  • R Offline
    R Offline
    remeshothera
    wrote on last edited by
    #1

    Dear all,

    I am a newbie in Qt.
    I have symbian application development background.

    I need to learn more on QML.

    My doubt is when i try to run some sample codes given in the tutorial,keywords like 'Background','MediumText','Button' etc are not taking,compilation error occured(showing as "Background is not a type").
    On top of the code i have added import Qt 4.7 ,anything else is required.

    please help me..
    tnks in advance,
    remesh

    1 Reply Last reply
    0
    • P Offline
      P Offline
      parancibia
      wrote on last edited by
      #2

      MediumText, Button are not standard components of QML you need create this components first before use it, check this article "Getting Started Programming with QML":http://doc.qt.nokia.com/4.7-snapshot/gettingstartedqml.html , is a good starting point

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kamalakshantv
        wrote on last edited by
        #3

        [quote author="remeshothera" date="1292950685"]Dear all,

        I am a newbie in Qt.
        I have symbian application development background.

        I need to learn more on QML.

        My doubt is when i try to run some sample codes given in the tutorial,keywords like 'Background','MediumText','Button' etc are not taking,compilation error occured(showing as "Background is not a type").
        On top of the code i have added import Qt 4.7 ,anything else is required.

        please help me..
        tnks in advance,
        remesh[/quote]

        Which is the above mentioned sample you are referring to.

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xsacha
          wrote on last edited by
          #4

          Most likely the sample includes files such as 'Background.qml'

          If you have a Background.qml in the same directory, 'Background' becomes a type you can use in other QML files.

          • Sacha
          1 Reply Last reply
          0
          • R Offline
            R Offline
            remeshothera
            wrote on last edited by
            #5

            Thank u all for u r quick response....

            One more doubt to clarify...

            Is it possible to access system capabilities like Camera,Telephony,Calender etc using QML?

            If yes plz give me the documentation..
            thanks,
            remesh

            1 Reply Last reply
            0
            • X Offline
              X Offline
              xsacha
              wrote on last edited by
              #6

              The documentation (and implementation) isn't 100% complete yet, but here you go:
              http://doc.qt.nokia.com/qtmobility/qml-plugins.html

              For instance, I couldn't find documentation for the Camera QML object, but here's an example that uses it:
              http://doc.qt.nokia.com/qtmobility/declarative-camera.html

              • Sacha
              1 Reply Last reply
              0
              • K Offline
                K Offline
                kamalakshantv
                wrote on last edited by
                #7

                [quote author="remeshothera" date="1293086324"]Thank u all for u r quick response....

                One more doubt to clarify...

                Is it possible to access system capabilities like Camera,Telephony,Calender etc using QML?

                If yes plz give me the documentation..
                thanks,
                remesh[/quote]

                QML is mostly recommended for UI. So you can try a combination of Qt C++ and QML to access the said system capabilities.

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  remeshothera
                  wrote on last edited by
                  #8

                  thanks once again...

                  1 Reply Last reply
                  0
                  • Q Offline
                    Q Offline
                    qtrahul
                    wrote on last edited by
                    #9

                    There are so many articles available in this web for the new developer, So, you can try it.

                    And also run the code.And start developing.

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kamalakshantv
                      wrote on last edited by
                      #10

                      [quote author="qtrahul" date="1293090092"]There are so many articles available in this web for the new developer, So, you can try it.

                      And also run the code.And start developing. [/quote]

                      Its obvious from his post that he tried to run the code and started development using QML.

                      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