Qt Hex -Darstellung eines negativen 8 -Bit -Int?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Qt Hex -Darstellung eines negativen 8 -Bit -Int?

by Anonymous » 09 Mar 2025, 11:20

Ähnliche Frage, aber ich suche nach einer QT -Lösung. Das Beispiel erklärt es besser. < /P>
qint8 width = - 100;
qDebug()
Die Ausgabe beträgt viel mehr als 2 Bytes.quint8 width = - 100;
qDebug()
In den Dokumentationen heißt es: < /p>

Typedef quint8 < /p>
Typtedef für nicht signiertes Zeichen. Dieser Typ ist garantiert 8-Bit auf allen
-Plattformen, die von qt. Dieser Typ ist garantiert
8-Bit auf allen Plattformen, die von qt.>

Top