用qtopia开发手机,现要在lineedit编辑框中显示红色字体,但qtopia中没有setforegroundcolor函数,请教如何实现????? 先谢了!!!!
by bluesprit980203 - GUI编程 - 2006-03-15 17:10:44 阅读(3594) 回复(0)
我使用以下代码: QFontDatabase fonts; fonts.families(QFontDatabase::SimplifiedChinese); 但是得到的很多字体还是不能支持中文显示 请问如何获取系统中支持中文显示的字体集呢? 谢谢! p.s. 我用的是qt 4.4.3,环境为KUbuntu 8.04
我用拖放组件的方式编了一个对对话框程序(Form.ui),在main.cpp文件 include 了那个 "form.h",可是make命令编译的时候只给出了form.h的错误报告,而没有我编的真正的form.ui.h的错误,这让我怎么改呀?简直郁闷死了!如果大侠有经验的话请指点一二,不胜感激! :em16:
http://xizhizhu.blogspot.com/2009/01/qt-development-viii-multi-thread.html Threads should be subclasses of qthread, and the qthread.run() should be overrided, the code of which will be executed in a separate thread when calling qthread.start(). A thread ends when the qthread.run() ends, or qthread.terminate() is called. Following code shows the basic idea of two threads running concurrently. // ...