StupidBeauty
Read times:2616Posted at: - no title specified

Qt4.8文档翻译:QColor的兼容性成员,Compatibility Members for QColor

QColor 类的以下成员,是Qt 兼容层的组成部分。 我们强烈建议,在新代码中不要使用这些成员。

成员函数文档

uint  QColor:: pixel ( int screen  = -1) const

返回的是,底层窗口系统中,用来表示某个特定颜色的像素值。

新代码中请使用 QColormap::pixel ()。

例如,以下代码:

QColor myColor;

uint pixel = myColor.pixel(screen);

可改写成:

QColormap cmap = QColormap::instance(screen);

uint pixel  = cmap.pixel(*this);

未知美人

Your opinions

Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands