![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Qt
Mr凯
努力ing
展开
-
使QtableWidget表格中的列平均填充
要使QtableWidget表格中的列平均填充,关键代码如下:/*****************************************************ui->tableWidget->horizontalHeader()->setResizeMode(QHeaderView::Stretch);******************************原创 2012-04-19 12:48:13 · 2776 阅读 · 0 评论 -
Qt没有代码提醒功能的解决方法
因为被我不小心设置了:工具-》选项-》FakeVim->使用了fakevim只要把钩去掉就ok了;原创 2012-04-19 12:46:08 · 3080 阅读 · 0 评论 -
error: QtNetwork: No such file or directory
在QT程序中,#include 运行时出现Tcpserver.h:8:26: error: QtNetwork: No such file or directory解决方法:在当前目录下找到 .pro文件在其中手工添加一行:QT += network 也或者在刚建立工程时,勾选Network Library原创 2012-04-19 13:00:48 · 1148 阅读 · 0 评论 -
解决Unable to locate theme engine in module_path: "pixmap"
Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap"装下那个engines就好了,就那么一行。。。 sudo apt-get install gtk2-engines-pixbuf (在ubuntu 11.10下没发现有gtk3的。。不过装了这一样再没提原创 2012-07-10 10:50:42 · 510 阅读 · 0 评论 -
qt creator上设计的控件如何在程序里为其设置值
比如我在ui文件中设置了个label如何在程序里点了一个botton就可以改变label的值。现在qt比较推荐的方法声明class 子类名: public 父类名, public Ui::UI类实现×××::×××(QWidget *parent) : QDialog(parent){ setupUi(this);}在这个类中直接ui->la原创 2012-07-10 10:54:20 · 492 阅读 · 0 评论