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 Updated to NodeBB v4.3 + New Features

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 469 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 last edited by Mohit Tripathi
    #1
    This post is deleted!
    jsulmJ aha_1980A 2 Replies Last reply
    0
    • M Mohit Tripathi

      This post is deleted!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #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

        This post is deleted!

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 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

        • Login

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