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. How can we store the string value into in an particular array in Qt?
Forum Update on Monday, May 27th 2025

How can we store the string value into in an particular array in Qt?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 3 Posters 448 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.
  • M Offline
    M Offline
    Mohit Tripathi
    wrote on 2 May 2018, 05:12 last edited by Mohit Tripathi 5 Feb 2018, 05:24
    #1
    This post is deleted!
    J A 2 Replies Last reply 2 May 2018, 05:32
    0
    • M Mohit Tripathi
      2 May 2018, 05:12

      This post is deleted!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 2 May 2018, 05:32 last edited by jsulm 5 Feb 2018, 05:33
      #2

      @Mohit-Tripathi Well, you need to convert "any variable" to QByteArray or something which can be converted to a QByteRef.
      Use http://doc.qt.io/qt-5/qstring.html#toShort and set base 16.

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

      1 Reply Last reply
      3
      • M Mohit Tripathi
        2 May 2018, 05:12

        This post is deleted!

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 2 May 2018, 05:55 last edited by
        #3

        @Mohit-Tripathi

        first you should understand the difference between 0x01 and "0x01". the former is a char (or int), the latter a string (array of char).

        this is basic C knowledge and you will need it always.

        Qt has to stay free or it will die.

        1 Reply Last reply
        1

        1/3

        2 May 2018, 05:12

        • Login

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