Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここで単純なものが欠けていると確信していますが、Qt TextBrowser で浮動小数点変数を出力する方法はありますか?
最も簡単な解決策:
double d = 3.1415 QTextBrowser b; b.append(QString::number(d));
このようなことを試しましたか?
float f = 1.414213; QString fStr; fStr.setNum(f); QTextBrowser b; b.append(fStr);