之前在选择配置虚拟机网络环境的时候 桥接也是不错的,但是自己在使用的时候由于访问频繁会出现断网现象。所以就开始使用Host-Only模式。开始并不是很明白为什么这么设置,也挖了很多坑。经常出现虚拟机无法获取IP问题。导致主机不能连接虚拟机很烦恼。经过这段时间的折腾终于明白其中的含义。 其实网络这类相 Read More
posted @ 2017-10-20 20:40 findumars Views(8194) Comments(0) Diggs(0)
由于最近要写一个简单的C/S模式的程序,刚好虚拟机装了个ubuntu12.04TLS,正好拿来当服务器测试,但是发现无法ping通。刚学习ubuntu,实在不熟,苦苦弄了2小时,才弄明白,在此记录一下,以免以后又痛苦 环境: 主机xp(公司蛋疼的还在用xp) virtualbox ubuntu12. Read More
posted @ 2017-10-20 20:36 findumars Views(447) Comments(0) Diggs(0)
环境: virtualbox ubuntu12.04 首先,如果你到这步了,说明你的window与linux的网络已经配好了,他们之间是可以互相Ping通的,如果没有,请看我以前的文章 由于我linux的连接方式是外网使用bridged内网使用了only-host,当初这样设计是为了固定内网ip,s Read More
posted @ 2017-10-20 20:20 findumars Views(541) Comments(0) Diggs(0)
1. 给QPushButton 增加背景图片:背景图片可根据Button大小自由缩放。 [cpp] view plain copy void setButtonBackImage(QPushButton *button,QString image,int sizeW, int sizeH) { // Read More
posted @ 2017-10-20 18:40 findumars Views(2251) Comments(0) Diggs(0)
实现代码如下: [cpp] view plain copy m_pSplitter = new QSplitter(ui->frame_2); //将Splitter放在UI的frame_2中; m_pSplitter->setGeometry(ui->frame_2->x(),ui->frame_ Read More
posted @ 2017-10-20 18:39 findumars Views(1159) Comments(0) Diggs(0)