OpenUrl 是 iOS 中 UIApplication 提供的一个函数,用于调用其它程序。实际上各个平台都有自己的实现,这里提供一个直接封装完的跨平台版本给大家。 Delphi/Pascal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 Read More
posted @ 2016-08-18 15:46 findumars Views(793) Comments(0) Diggs(0)
一、简介 DBus的出现,使得Linux进程间通信更加便捷,不仅可以和用户空间应用程序进行通信,而且还可以和内核的程序进行通信,DBus使得Linux变得更加智能,更加具有交互性。 DBus分为两种类型:system bus(系统总线),用于系统(Linux)和用户程序之间进行通信和消息的传递;se Read More
posted @ 2016-08-18 00:02 findumars Views(3379) Comments(0) Diggs(0)
使用QProcess QThread #include <QProcess>int main(){QProcess::execute("ls");return 0;} QProcess *poc = new QProcess; poc-> start( "ping 222.207.53.1> hh Read More
posted @ 2016-08-18 00:00 findumars Views(7006) Comments(0) Diggs(0)
一、简介 最近看到一篇Qt实现伸缩滑动的窗口的文章,但其代码不完整。便在此重新书写了完整的代码,并开源出来。窗口的中央有滑动条可以动态改变子窗口的大小,隐藏的按钮可以快速伸缩子窗口。其效果图如下: 二、详解 1、代码 (1)slidingwindow.h [html] view plain copy Read More
posted @ 2016-08-17 23:34 findumars Views(5010) Comments(0) Diggs(0)
一、问题 Linux系统下Qt窗口的透明效果成了黑色,但同样的代码在windows机子上有透明效果,主要是修改系统的配置,仅在centos6.3及其以上版本实验过。其他系统可以相应配置。 二、问题运行图 (1)Qt透明效果,centos下运行都会出现如下图1所示。 三、解决方法 (1)窗口透明,窗口 Read More
posted @ 2016-08-17 21:40 findumars Views(5007) Comments(0) Diggs(0)