• 5916阅读
  • 6回复

qt的资源文件是怎么生成的 [复制链接]

上一主题 下一主题
离线浪迹江湖
 

只看楼主 倒序阅读 楼主  发表于: 2009-09-08
我用了如下命令:
rcc -o *.cpp out.qrc
想把src目录下的所有cpp文件的图片资源放到qrc文件中,
但提示说rcc: File does not exist 'out.qrc'

qrc文件是怎么生成的,是手动编写的吗,
用designer怎么生成
离线dbzhang800

只看该作者 1楼 发表于: 2009-09-08
不想手动写的话,为什么不用Qt Creator 来生成呢?
离线浪迹江湖

只看该作者 2楼 发表于: 2009-09-08
我这上面没有QCreator,我只是想知道用rcc怎么生成资源文件
离线dbzhang800

只看该作者 3楼 发表于: 2009-09-08
引用第2楼浪迹江湖于2009-09-08 19:47发表的  :
我这上面没有QCreator,我只是想知道用rcc怎么生成资源文件


既然对命令感兴趣,那就好好看帮助呗

  1. debao@lubuntu:~$ rcc -h
  2. Qt resource compiler
  3. Usage: rcc  [options] <inputs>
  4. Options:
  5.   -o file              write output to file rather than stdout
  6.   -name name           create an external initialization function with name
  7.   -threshold level     threshold to consider compressing files
  8.   -compress level      compress input files by level
  9.   -root path           prefix resource access path with root path
  10.   -no-compress         disable all compression
  11.   -binary              output a binary file for use as a dynamic resource
  12.   -namespace           turn off namespace macros
  13.   -project             Output a resource file containing all
  14.                        files from the current directory
  15.   -version             display version
  16.   -help                display this information
离线dbzhang800

只看该作者 4楼 发表于: 2009-09-08
另外,你能解释下你具体想实现什么吗?你楼顶的帖子看得我晕头转向的

还有
cpp文件的图片资源 是啥东西?
离线浪迹江湖

只看该作者 5楼 发表于: 2009-09-09
我就想知道,*.qrc文件通常怎么生成的
离线dbzhang800

只看该作者 6楼 发表于: 2009-09-09
通常都是手写吧
快速回复
限100 字节
 
上一个 下一个