Qt Tips
文字列から数値への変換で16進数、8進数を使えるようにする
QString s = "0x10"; // 16進数。8進数の場合は"010" bool ok; int i = s.toInt( &ok, 0 );
s.toInt( &ok, 10 ); なら10進数のみ。