2009年7月アーカイブ

Windows の場合 AppData のOpenOffice/3/user/config/
にある standard.soc に保存されている。

<ooo:color-table ...> 〜 </ooo:color-table> の間に、
<draw:color draw:name="色の名前" draw:color="#xxyyzz" /> で記述する。

*.soc とつくファイルは総じて色物らしい。使い方、使われ方不明。
だれか、和色のテーブル作って欲しい。

Qt4 QList の覚え書き

Qt4 の QList クラスを使うときのサンプル。
delete はここでは考慮してない。

#include 
#include 

class XY {
public:
	int x;
	int y;

	XY() { x=y=0; }
	XY(int _x, int _y) { x=_x; y=_y; }
	~XY() {}
	void dump() {
		qDebug() << x << ',' << y << endl;
	}
};


int main(int argc, char *argv[])
{
    QList< XY > list;
    XY a;
    a.x = 1;
    a.y = 2;
    list.append(a);

    XY b(2, 22);
    list.append(b);

    list.append(*new XY(3,333));

    QList< XY >::iterator i = list.begin();
    while (i != list.end()) {
    	XY& xy = (*i);
    	(*i).dump();
        ++i;
    }

    return 0;
}

連絡先

nakanohito