ChinaUnix.net
相关文章推荐:

qt 数据传递

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)

相关讨论

qt连接mysql数据库方面的资料,不知道哪里有?我的邮箱321yanbo@163.com

by yandabo - C/C++ - 2005-07-06 14:55:43 阅读(797) 回复(0)

我写了一个程序 有两个lineedit控件 一个是用户名,一个是口令 如果用户按一个按键就去处理用户与口令 现在的问题是 一:如何让口令是*的形式显示 二:如何才能接收到lineedit里面的数据呀 有没有例子呀 小弟才开始搞qt 谢谢 谢谢

by pengjzp619 - C/C++ - 2004-10-17 21:01:19 阅读(1737) 回复(1)

程序是用qt写的,绝大部分情况下正常。但是偶然会出现崩的情况,不知该如何解决? myreport.cpp:320为pthread_thread_lock()函数调用,似乎不应该崩,或者说内存乱了,但是我不知道是什么原因引起的。 (gdb) bt #0 0x40d0e276 in std::__default_alloc_template::allocate(unsigned) () from /usr/lib/libstdc++.so.5 #1 0x08199a3b in std::__simple_alloc ...

by jsntwjw - C/C++ - 2008-09-01 10:00:02 阅读(3756) 回复(2)

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...

by dxwang - MySQL - 2005-11-18 20:05:18 阅读(3520) 回复(6)

编译出错,提示没有驱动,但是我不知道怎么搞来MySQL的驱动呀

by icyheart98 - MySQL - 2005-09-22 11:19:10 阅读(1095) 回复(0)

我想把qt中lineEdit中的文本提取出来,请问如何提取出来啊?

by enzzz - GUI编程 - 2008-01-26 11:26:45 阅读(3423) 回复(1)

我用拖放组件的方式编了一个对对话框程序(Form.ui),在main.cpp文件 include 了那个 "form.h",可是make命令编译的时候只给出了form.h的错误报告,而没有我编的真正的form.ui.h的错误,这让我怎么改呀?简直郁闷死了!如果大侠有经验的话请指点一二,不胜感激! :em16:

by sonix - - 2003-05-03 19:22:46 阅读(244) 回复(0)

问一个有点弱的问题啊!用qt编写好的程序能在qt/e上用行不? 做嵌入式图形界面开发时,编程部分能否用qt。新手,多多包涵

by lyf3560 - GUI编程 - 2009-11-30 23:48:11 阅读(2935) 回复(2)

请问qt是开源的么? 在UNIX下和Linux下使用是不是都不要钱?

by eirsky - GUI编程 - 2007-05-16 11:09:38 阅读(3495) 回复(4)

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. // ...

by zxz1984 - GUI编程 - 2009-01-15 00:15:22 阅读(3992) 回复(0)