CONFIG += qaxcontainer 2. main.cpp [cpp] view plain copy #include <QApplication> #include <QAxWidget> #include <QAxObject> int main(int argc, char* ar Read More
posted @ 2016-04-01 22:40
findumars
Views(8274)
Comments(0)
Diggs(0)
下面我们再看一个更复杂的例子,调用一个系统命令,这里我使用的是 Windows,因此需要调用 dir;如果你是在 Linux 进行编译,就需要改成 ls 了。 mainwindow.h mainwindow.cpp 我们仅增加了一个 slot 函数。在按钮点击的 slot 中,我们通过 QProce Read More
posted @ 2016-04-01 20:20
findumars
Views(2720)
Comments(0)
Diggs(0)
http://blog.csdn.net/aroc_lo/article/details/3070530 http://www.fx114.net/qa-183-149306.aspx Read More
posted @ 2016-04-01 20:13
findumars
Views(1580)
Comments(0)
Diggs(0)
透明的控件, 一般继承自TGraphicControl的(就是那些没有handle属性, 不能有focus的控件, 如image)都有Transparent属性. 对TWinControl类的控件, 要实现透明只要完成以下四步基本上就成了. 1.在Create中设定ControlStyle :=Co Read More
posted @ 2016-04-01 20:10
findumars
Views(1790)
Comments(0)
Diggs(0)
读一读Scktsrvr.exe的源程序 使用DELPHI做多层开发的朋友们都应该对Scktsrvr.exe这个程序不陌生的,Borland公司在DELPHI中给出了它的源代码。这是一个900来行的程序,程序不算长,现在我只选其中部分仔细读一读。走的线路大致是,从服务器接到客户端连接,处理客户端的一个 Read More
posted @ 2016-04-01 20:09
findumars
Views(960)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号