Qdebug display hex value

前端 未结 9 1467
你的背包
你的背包 2021-02-19 02:56

I am trying to display a number using QDebug in the Hex format. Below is the code which I have written. It is working but the output has string contents enclosed in double quot

9条回答
  •  你的背包
    2021-02-19 03:35

    The solution is simple:

    #include 
    
    int value = 0x12345;
    qDebug() << "Value : " << hex << value;
    

提交回复
热议问题