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. [SOLVED] Conversion from ascci to char in QML
QtWS25 Last Chance

[SOLVED] Conversion from ascci to char in QML

Scheduled Pinned Locked Moved Solved QML and Qt Quick
26 Posts 2 Posters 12.1k 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.
  • P p3c0
    17 Jun 2015, 07:52

    @Pradeep-Kumar.M Get the new index position from TextInput. You want it to append it at the end so length should give you the last index. Insert it there

    textin.insert(textin.length,event.text)
    
    P Offline
    P Offline
    Pradeep Kumar
    wrote on 17 Jun 2015, 07:55 last edited by
    #14

    @p3c0

    thank you, it worked.

    Pradeep Kumar
    Qt,QML Developer

    P 1 Reply Last reply 17 Jun 2015, 07:56
    0
    • P Pradeep Kumar
      17 Jun 2015, 07:55

      @p3c0

      thank you, it worked.

      P Offline
      P Offline
      p3c0
      Moderators
      wrote on 17 Jun 2015, 07:56 last edited by
      #15

      @Pradeep-Kumar.M You're Welcome :)

      157

      P 1 Reply Last reply 17 Jun 2015, 08:07
      1
      • P p3c0
        17 Jun 2015, 07:56

        @Pradeep-Kumar.M You're Welcome :)

        P Offline
        P Offline
        Pradeep Kumar
        wrote on 17 Jun 2015, 08:07 last edited by
        #16

        @p3c0

        one more question

        i tries Qt Integration

        here is ex: of main.cpp

        QQmlApplicationEngine engine;
        engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
        QObject *topLevel = engine.rootObjects().value(0);
        QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel);
        window->dumpObjectTree();
        QQuickWindow *window1 = topLevel->findChild<QQuickWindow * >(objectname);

        can i have QQMLContext, QQMLComponent & QQMLEngine,
        if so
        can u provide code of it, along with component item.

        Pradeep Kumar
        Qt,QML Developer

        P 1 Reply Last reply 17 Jun 2015, 08:11
        0
        • P Pradeep Kumar
          17 Jun 2015, 08:07

          @p3c0

          one more question

          i tries Qt Integration

          here is ex: of main.cpp

          QQmlApplicationEngine engine;
          engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
          QObject *topLevel = engine.rootObjects().value(0);
          QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel);
          window->dumpObjectTree();
          QQuickWindow *window1 = topLevel->findChild<QQuickWindow * >(objectname);

          can i have QQMLContext, QQMLComponent & QQMLEngine,
          if so
          can u provide code of it, along with component item.

          P Offline
          P Offline
          p3c0
          Moderators
          wrote on 17 Jun 2015, 08:11 last edited by
          #17

          @Pradeep-Kumar.M Do you mean an example ?

          157

          P 1 Reply Last reply 17 Jun 2015, 08:12
          0
          • P p3c0
            17 Jun 2015, 08:11

            @Pradeep-Kumar.M Do you mean an example ?

            P Offline
            P Offline
            Pradeep Kumar
            wrote on 17 Jun 2015, 08:12 last edited by
            #18

            @p3c0

            yeah but
            to replace the lines above which i sent in previous post

            Pradeep Kumar
            Qt,QML Developer

            P 1 Reply Last reply 17 Jun 2015, 08:14
            0
            • P Pradeep Kumar
              17 Jun 2015, 08:12

              @p3c0

              yeah but
              to replace the lines above which i sent in previous post

              P Offline
              P Offline
              p3c0
              Moderators
              wrote on 17 Jun 2015, 08:14 last edited by
              #19

              @Pradeep-Kumar.M Here's an example.

              157

              P 1 Reply Last reply 17 Jun 2015, 08:17
              1
              • P p3c0
                17 Jun 2015, 08:14

                @Pradeep-Kumar.M Here's an example.

                P Offline
                P Offline
                Pradeep Kumar
                wrote on 17 Jun 2015, 08:17 last edited by
                #20

                @p3c0

                for wat exactly setcontextproperty is used

                Pradeep Kumar
                Qt,QML Developer

                P 1 Reply Last reply 17 Jun 2015, 08:19
                0
                • P Pradeep Kumar
                  17 Jun 2015, 08:17

                  @p3c0

                  for wat exactly setcontextproperty is used

                  P Offline
                  P Offline
                  p3c0
                  Moderators
                  wrote on 17 Jun 2015, 08:19 last edited by
                  #21

                  @Pradeep-Kumar.M To expose C++ objects to QML.

                  157

                  P 1 Reply Last reply 17 Jun 2015, 08:22
                  1
                  • P p3c0
                    17 Jun 2015, 08:19

                    @Pradeep-Kumar.M To expose C++ objects to QML.

                    P Offline
                    P Offline
                    Pradeep Kumar
                    wrote on 17 Jun 2015, 08:22 last edited by
                    #22

                    @p3c0

                    do we have QQMLContextItem or QQMLComponentItem

                    Pradeep Kumar
                    Qt,QML Developer

                    P 1 Reply Last reply 17 Jun 2015, 08:24
                    0
                    • P Pradeep Kumar
                      17 Jun 2015, 08:22

                      @p3c0

                      do we have QQMLContextItem or QQMLComponentItem

                      P Offline
                      P Offline
                      p3c0
                      Moderators
                      wrote on 17 Jun 2015, 08:24 last edited by
                      #23

                      @Pradeep-Kumar.M None. We have QQuickItem.

                      157

                      P 1 Reply Last reply 17 Jun 2015, 08:41
                      1
                      • P p3c0
                        17 Jun 2015, 08:24

                        @Pradeep-Kumar.M None. We have QQuickItem.

                        P Offline
                        P Offline
                        Pradeep Kumar
                        wrote on 17 Jun 2015, 08:41 last edited by
                        #24

                        @p3c0

                        QML is scripting language,
                        QtQuick is module required for writing QML Applications,

                        diff between QtQuick and QML please?.

                        Pradeep Kumar
                        Qt,QML Developer

                        P 1 Reply Last reply 17 Jun 2015, 08:50
                        0
                        • P Pradeep Kumar
                          17 Jun 2015, 08:41

                          @p3c0

                          QML is scripting language,
                          QtQuick is module required for writing QML Applications,

                          diff between QtQuick and QML please?.

                          P Offline
                          P Offline
                          p3c0
                          Moderators
                          wrote on 17 Jun 2015, 08:50 last edited by
                          #25

                          @Pradeep-Kumar.M Yes you have the answer. Check out what-is-qml and what-is-qt-quick.
                          It's all in the docs. You should go through it.

                          157

                          P 1 Reply Last reply 17 Jun 2015, 09:12
                          1
                          • P p3c0
                            17 Jun 2015, 08:50

                            @Pradeep-Kumar.M Yes you have the answer. Check out what-is-qml and what-is-qt-quick.
                            It's all in the docs. You should go through it.

                            P Offline
                            P Offline
                            Pradeep Kumar
                            wrote on 17 Jun 2015, 09:12 last edited by
                            #26

                            @p3c0
                            k

                            Pradeep Kumar
                            Qt,QML Developer

                            1 Reply Last reply
                            0

                            23/26

                            17 Jun 2015, 08:24

                            • Login

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