jnny_cn的个人主页

http://www.qtcn.org/bbs/u/7713  [收藏] [复制]

jnny_cn

  • 23

    关注

  • 124

    粉丝

  • 91

    访客

  • 等级:侠客
  • 总积分:165
  • 保密,1990-01-01

最后登录:2019-12-13

更多资料

日志

2014-06-06 11:59

制作.ppm格式Linux内核启动logo

①将png图片转成pnm
pngtopnm linux_iunin_logo.png > linux_iunin_logo.pnm

②将pnm图片的颜色数限制在224色
pnmquant 224 linux_iunin_logo.pnm > logo_iunin_clut224.pnm

③将pnm图片转换成我们需要的ppm
pnmtoplainpnm logo_iunin_clut224.pnm > logo_iunin_clut224.ppm

默认的logo文件是 drivers/video/logo/logo_linux_clut224.ppm

阅读全文»分类:默认分类|回复:0|浏览:863
2014-06-06 11:56

arm Linux 如何自动检测并mount SD卡,以及如何得知已经mount

一、土八路做法:
SD 卡一旦插入系统,内核会自动在/dev/下创建设备文件:sdcard。 但有时可能时用户在拨出卡前并没有umount的话,第二次插卡进去后系统创建的就不是sdcard设备文件了,而是mmcblk0, mmcblk1p1, mmcblk2p1, 或mmcblk3p1.

所以只需用if ( fopen("/dev/sdcard", "r") == NULL ) 来检测SD卡是否已经被内核捉到。然后就可以mount ....以及你想干的事情了。

如何得知自己已经有mount 了呢?
cat /proc/mounts 之后就会有:
rootfs / rootfs ..

阅读全文»分类:默认分类|回复:0|浏览:1129
2014-05-23 15:32

Qt5 模块简介

Qt 5 与 Qt 4 最大的一个区别之一是底层架构有了修改。Qt 5 引入了模块化的概念,将众多功能细分到几个模块之中。Qt 4 也有模块的概念,但是是一种很粗的划分,而 Qt 5 则更加细化。本节主要对 Qt 5 的模块进行一个简单的介绍,以便以后大家需要哪些功能的时候知道到哪个模块去寻找。



Qt 5 模块分为 Essentials Modules 和 Add-on Modules 两部分。前者是基础模块,在所有平台上都可用;后者是扩展模块,建立在基础模块的基础之上,在能够运行 Qt 的平台之上可以酌情引入。



Qt 基础模块分为以下几个:

o Qt Cor ..

阅读全文»分类:默认分类|回复:0|浏览:1166
2014-05-23 11:20

Qt Bluetooth Overview


With the Qt Bluetooth API typical use cases are:Retrieve information about the local Bluetooth device.Scan for other Bluetooth devices in range and retrieve information about them.Push files to remote devices using the OBEX Object Push Profile (OPP)Connect to remote devices through a RFCOMM channel using the Serial Port Profile (SPP).Create a RFCOMM server that allows incoming connections using SPP.
Note that the Object Push Profile is not supported on Android.
The follow ..

阅读全文»分类:默认分类|回复:0|浏览:1912
2014-05-22 10:31

CMake Manual

CMake is a tool that helps simplify the build process for development projects across different platforms. CMake automates the generation of buildsystems such as Makefiles and Visual Studio project files.CMake is a 3rd party tool with its own documentation. The rest of this manual details the specifics of how to use Qt 5 with CMake. The minimum version required to use Qt5 is CMake 2.8.3, but 2.8.11 is recommended.

Getting Started

The first requirement when using CMake is to us ..

阅读全文»分类:默认分类|回复:0|浏览:1334
2014-05-22 10:30

C++ API changes


Qt 5 introduces some source incompatible changes. Here we list the important ones, but you can find the complete list in <Qt 5 Install Dir>/qtbase/dist/changes-5.0.0.
The following sections lists the API changes in each module and provides recommendations to handle those changes.

Changes to Qt Core

The QObject::connectNotify() and QObject::disconnectNotify() functions now need a QMetaMethod argument that identifies the signal, rather than a const char pointer.QLibrary:: ..

阅读全文»分类:默认分类|回复:0|浏览:2616
2014-05-22 10:29

Porting Guide


Qt 5 is a result of the conscious effort to make this C++ framework more efficient and easy to use. This release replaces quite a few legacy APIs with more meaningful ones, such as the newer version of Qt Quick.
We try to maintain binary and source compatibility for all the public APIs in each release, but some changes were inevitable in an effort to make Qt a better framework. In this topic, we try to summarize those changes and provide guidance to handle them.
The following lis ..

阅读全文»分类:默认分类|回复:0|浏览:1024
2014-05-22 10:28

The Transition from Qt 4.x to Qt 5

The transition from Qt 4.x to Qt 5 is not expected to be significant. However, the “modularization” of the Qt code base requires some amount of changes to project configuration, such as use of “headers”, and configuration of project build settings (such as changes to the *.pro files).
Qt Creator (master) is compiled using Qt 4 and Qt 5; you can refer to its sources to get an overview of what is required to port an application and keep the sources backwards ..

阅读全文»分类:默认分类|回复:0|浏览:1003

Powered by phpwind v8.7 Certificate Copyright Time now is:03-28 23:12
©2005-2016 QTCN开发网 版权所有 Gzip disabled