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. from hex to qstring

from hex to qstring

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 536 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    enum
    {
    ID = 0x01
    }

    messaggio_inviato[0]= ID;
    ui->Messaggio->setText(QString::fromUtf16(Data.at(0));

    I don't know I can stamp 0x01

    ? Gojir4G 2 Replies Last reply
    0
    • ? A Former User

      enum
      {
      ID = 0x01
      }

      messaggio_inviato[0]= ID;
      ui->Messaggio->setText(QString::fromUtf16(Data.at(0));

      I don't know I can stamp 0x01

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @vale88 Data.append(messaggio_inviato);

      1 Reply Last reply
      0
      • ? A Former User

        enum
        {
        ID = 0x01
        }

        messaggio_inviato[0]= ID;
        ui->Messaggio->setText(QString::fromUtf16(Data.at(0));

        I don't know I can stamp 0x01

        Gojir4G Offline
        Gojir4G Offline
        Gojir4
        wrote on last edited by
        #3

        @vale88

        QString::number(ID, 16) // returns "1"
        QString("0x%1").arg(ID, 2, 16, QChar('0')) //return "0x01"
        
        ? 1 Reply Last reply
        3
        • Gojir4G Gojir4

          @vale88

          QString::number(ID, 16) // returns "1"
          QString("0x%1").arg(ID, 2, 16, QChar('0')) //return "0x01"
          
          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @Gojir4 said in from hex to qstring:

          QString("0x%1").arg(ID, 2, 16, QChar('0'))

          thanks

          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