Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to import the Statement in our .qml file
Forum Updated to NodeBB v4.3 + New Features

How to import the Statement in our .qml file

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 462 Views
  • 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.
  • S Offline
    S Offline
    sankarapandiyan
    wrote on 25 Oct 2019, 07:02 last edited by sankarapandiyan
    #1
    This post is deleted!
    J 1 Reply Last reply 25 Oct 2019, 07:04
    0
    • S sankarapandiyan
      25 Oct 2019, 07:02

      This post is deleted!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 25 Oct 2019, 07:04 last edited by
      #2

      @sankarapandiyan said in How to import the Statement in our .qml file:

      How to open the .qml file in qt creator

      Like any other text file?
      What is the problem?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • S Offline
        S Offline
        sankarapandiyan
        wrote on 25 Oct 2019, 07:07 last edited by
        #3

        To use the C++ library in your application, add the following configuration option to your .pro file:

        QT += bluetooth
        To use the classes of the module in your application you need the following import statement in your .qml file:

        import QtBluetooth 5.12

        These are the Two steps ,
        I Fix the first step, Second One is my doubt How to enable the import qtbluetooth 5.12 in . qml file

        J 1 Reply Last reply 25 Oct 2019, 07:12
        0
        • S sankarapandiyan
          25 Oct 2019, 07:07

          To use the C++ library in your application, add the following configuration option to your .pro file:

          QT += bluetooth
          To use the classes of the module in your application you need the following import statement in your .qml file:

          import QtBluetooth 5.12

          These are the Two steps ,
          I Fix the first step, Second One is my doubt How to enable the import qtbluetooth 5.12 in . qml file

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 25 Oct 2019, 07:12 last edited by
          #4

          @sankarapandiyan Do you have a QML file in your application?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply 25 Oct 2019, 08:05
          0
          • J jsulm
            25 Oct 2019, 07:12

            @sankarapandiyan Do you have a QML file in your application?

            S Offline
            S Offline
            sankarapandiyan
            wrote on 25 Oct 2019, 08:05 last edited by sankarapandiyan
            #5

            @jsulm No , its automaticaly created or create it by own ?

            J 1 Reply Last reply 25 Oct 2019, 08:10
            0
            • S sankarapandiyan
              25 Oct 2019, 08:05

              @jsulm No , its automaticaly created or create it by own ?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 25 Oct 2019, 08:10 last edited by
              #6

              @sankarapandiyan Well, it is your application, right? If you want to use QML for UI then you have to create and edit QML files.
              https://doc.qt.io/qt-5/qtqml-index.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              2
              • S Offline
                S Offline
                sankarapandiyan
                wrote on 25 Oct 2019, 10:27 last edited by
                #7

                yes i got it @jsulm

                1 Reply Last reply
                0

                5/7

                25 Oct 2019, 08:05

                • Login

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