Labels

14/08/2009

Reset Window origin coordination

设置窗口原点坐标



by default, window / frame's origin coordination is (0,0). it can't be changed in the property window, but can be set up in code.



after create a new window, add following code after "m_ui->setupUi(this)"



QPoint pos; // relocate window

pos.setX(240); // x

pos.setY(100); // y

move(pos);





07/08/2009

Resizing pictures in batch in Linux

批量修改图片大小

Software: imagemagick

install: $ sudo apt-get install imagemagick

command:

$ mogrify -resize 50% *.jpg or
$ convert -resize 50% *.jpg (don't over write original photos)