用qtableView和QSqlTableModel从表model_detail读取一行数据显示,效果如下图 http://kenby.javaeye.com/upload/picture/pic/41116/c3543b46-3b28-3acc-b93d-b3840335483e.png 由于只有一行数据,且字段很多,所以我想让它这样显示,如下图: http://kenby.javaeye.com/upload/picture/pic/41114/d1b56f4b-b35c-3229-88ee-b07a724a47e7.png 请问如何做到?相关代码如下: standardView = new qtableView; standardModel = new QSql...
by kenby - GUI编程 - 2009-07-27 23:10:13 阅读(3442) 回复(0)
我写了一个程序 有两个lineedit控件 一个是用户名,一个是口令 如果用户按一个按键就去处理用户与口令 现在的问题是 一:如何让口令是*的形式显示 二:如何才能接收到lineedit里面的数据呀 有没有例子呀 小弟才开始搞qt 谢谢 谢谢
程序是用qt写的,绝大部分情况下正常。但是偶然会出现崩的情况,不知该如何解决?
myreport.cpp:320为pthread_thread_lock()函数调用,似乎不应该崩,或者说内存乱了,但是我不知道是什么原因引起的。
(gdb) bt
#0 0x40d0e276 in std::__default_alloc_template
qt designer 3.1 版本 我选择了project 下的 database connecitons...下, 点击了new connection . Name:是默认的 driver:选择了QMYSQL3 hostname:localhost(本机) port:defalut 点connect 出来提示框: could not connect to the database. please ensure that the database server is runing and that all the connection information is correct. {mysql3:unable to connect can't connext to local mysql server through s...
我用拖放组件的方式编了一个对对话框程序(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. // ...