当前位置:网站首页>QT qstring:: number apply base conversion
QT qstring:: number apply base conversion
2022-07-03 09:28:00 【Ice V Che】
long a = 63;
QString s = QString::number(a, 16); // s == "3f"
QString t = QString::number(a, 16).toUpper(); // t == "3F"
// Support formats :long, int, uint, ulong, qlonglong, quint8,quint16,quint32
// turn 10 Just say 16 Change it to 10, Support 2-36 Hexadecimal conversion
边栏推荐
- 【Kotlin学习】高阶函数的控制流——lambda的返回语句和匿名函数
- Long类型的相等判断
- Jenkins learning (III) -- setting scheduled tasks
- Crawler career from scratch (I): crawl the photos of my little sister ① (the website has been disabled)
- Simple use of MATLAB
- Linxu learning (4) -- Yum and apt commands
- ERROR: certificate common name “*.” doesn’t match requested ho
- Word segmentation in full-text indexing
- On February 14, 2022, learn the imitation Niuke project - develop the registration function
- C language programming specification
猜你喜欢

【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?

2022-2-14 learning xiangniuke project - Session Management

PolyWorks script development learning notes (II) -treeview basic operations

Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code

Spark cluster installation and deployment

CATIA automation object architecture - detailed explanation of application objects (III) systemservice

Win10安装ELK

NPM install installation dependency package error reporting solution

Hudi 快速体验使用(含操作详细步骤及截图)

Django operates Excel files through openpyxl to import data into the database in batches.
随机推荐
CATIA automation object architecture - detailed explanation of application objects (I) document/settingcontrollers
Solve POM in idea Comment top line problem in XML file
The server denied password root remote connection access
Modify idea code
Uc/os self-study from 0
制作jetson nano最基本的根文件系统、服务器挂载NFS文件系统
Install third-party libraries such as Jieba under Anaconda pytorch
2022-2-14 learning xiangniuke project - Session Management
On February 14, 2022, learn the imitation Niuke project - develop the registration function
Basic knowledge of database design
WARNING: You are using pip ; however. Later, upgrade PIP failed, modulenotfounderror: no module named 'pip‘
Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
Computing level network notes
LeetCode每日一题(516. Longest Palindromic Subsequence)
Spark overview
C language programming specification
Bert install no package metadata was found for the 'sacraments' distribution
[point cloud processing paper crazy reading classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
Integrated use of interlij idea and sonarqube
Severity code description the project file line prohibits the display of status error c2440 "initialization": unable to convert from "const char [31]" to "char *"