300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > Qt::​Alignment 设置对齐方式

Qt::​Alignment 设置对齐方式

时间:2020-06-14 14:41:28

相关推荐

Qt::​Alignment 设置对齐方式

enum Qt::​AlignmentFlag

flags Qt::​Alignment

设置文本的对齐方式,头文件#include <Qt>

This enum type is used to describe alignment. It contains horizontal and vertical flags that can be combined to produce the required effect.

TheTextElideModeenum can also be used in many situations to fine-tune the appearance of aligned text.

The horizontal flags are:

The vertical flags are:

QTableWidgetItem *item = new QTableWidgetItem(operand1);item->setTextAlignment(Qt::AlignRight);写入小部件的设置方式tableWidget->setItem(row++,1,item);

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。