posts - 319, comments - 22, trackbacks - 0, articles - 11
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理



CoolReader Engine
http://sourceforge.net/projects/crengine/
CR3/Qt Images in FB2 book


qBittorrent
http://sourceforge.net/projects/qbittorrent/

Dropbox Plugin for Windows
http://sourceforge.net/projects/dropboxcopyplug/
Main Dialog
Usage


4chan Downloader
http://sourceforge.net/projects/fourchan-dl/
A tool to download images from 4chan threads. Automatic rescanning for new images is supported as well as simultaneous watching multiple threads. Since it is written in Qt/C++ it is available for Windows, Linux and Mac.
Available options (version 0.9.5)
Program running on Xubuntu 10.10

KShutdown
http://sourceforge.net/projects/kshutdown/
An Advanced Shut Down Utility for KDE/Linux/Windows. See "Home Page" for details.
Main window, system tray menu 

Black Chocobo
http://sourceforge.net/projects/blackchocobo/
Black Chocobo is a FF7 save game editor written in Qt. Available for Windows, Linux + Mac Os. A Full Featured Save Editor, Black Chocobo contains All The features you would expect and more.
0-Party Tab -  Char Stats
Slot Selection Dialog

dvbcut  
http://sourceforge.net/projects/dvbcut/
dvbcut is a Qt application that enables you to select frame-precise parts of an mpeg transport stream (as received from Digial Video Broadcasting) and save them as independent mpeg files.
dvbcut as of 14 Nov 2005
dvbcut's "display difference" feature


Qsynth
http://sourceforge.net/projects/qsynth/
Qsynth is a fluidsynth GUI front-end application, written in C++ around the Qt4 toolkit, using Qt Designer. Eventually it may evolve into a softsynth management application allowing the user to control and manage a variety of command line softsynths.


Ultimate Calc
Multitask scientific calculator. Supports plugins and scripts (in C++ and QtScript respectively) to provide different working modes and custom solving functions.
Formula calculator
Simple solve program


Conan for Qt
http://sourceforge.net/projects/conanforqt/
Conan - Connection analyzer for Qt is a C++ library that provides visual run-time introspection of QObject hierarchies, QObject inheritance, signal/slot connections, and signal emissions. Currently supports Qt 4.6.0 - Qt 4.7.2
Conan widget - Objects hierarchy
Signal spy output



SMPlayer
 

SMPlayer is a complete front-end for MPlayer, from basic features like playing videos, DVDs, VCDs to more advanced features like support for MPlayer filters, edl lists, and more.

posted @ 2011-04-08 20:16 RTY 阅读(562) | 评论 (0)编辑 收藏

     摘要: 特殊技巧:1.使用start命令在命令行中打开文件夹   如: C:\>start e:\mm2.使用cls命令清除命令3.进入指定目录 cmd命令可以带参数/k执行指定的命令,利用这个特性,可以在运行栏执行cmd命令时加上切换目录的命令,就可以达到目的了,如:     cmd /k d:    &...  阅读全文

posted @ 2011-04-07 21:00 RTY 阅读(5036) | 评论 (0)编辑 收藏

最常用的是tab键,他会补全路径,这个大家应该都是到。

其次还有”Ctrl+←“键和“Ctrl+→”, 他们分别跳到前一个单词和后一个单词。

 

还有一组快捷键是这次新学到的:F1 - F9

F1: 功能相当于“→”,对上一条命令进行逐字打印。 输入一条命令,回车执行,再按F1变可看到效果

F2: 按下此键后,会在中间反白提示“输入可复制的字符数量”,开始看这句话真的没看懂。

     网上搜到一条解释是:

     “此时直接按下上次输入命令中包含的字符(区别大小写)后,命令提示符将自动输入到按键字符。”

     同样是输入一条命令,回车执行,再按F2测试了一下才明白这其中意思。

     比如先运行命令:cd "C:\Documents and Settings\Administrator"

     然后再输入F2 A, 便会得到:“cd "C:\Documents and Settings\”

F3: 重复上一条命令
F4: 与F2相对应,按下会提示:提示“输入可删除的字符数量”。网上的一段总结是

      “删除当前光标到符合条件的第一个字符的前一字符之间的字符串,

      如果按下的键不包含以前字符,则不进行操作并关闭提示窗口。”

      关于对F2,F4的理解参照我后面的总结。

 

 

F5: 相当于"↑", 在历史记录中逐条上查“前一条命令”
F6: 相当于CTER+z“    如下“^Z”

 


F7: 反白显示所有历史记录,配有编号。

     并支持使用每条命令的首字母进行搜索、快速导航。

     这个功能有点像Explorer中可以“键入文件名进行导航”的功能,区别是命令行中只支持首字母。
F8: 在命令行下可以输入以下字符,此时按下F8快捷键,

     他会在历史记录中逐条上查“以刚才输入那部分字符开始的命令”

     所以当什么都不输入的时候,他的功能相当于F5,

     但是如果你的历史记录中有这些记录:

 

cd C:/A
dir
cd C:/B
cls
cd C:/C

 

    此时输入CD,再按F8,便会依次定位到:cd C:/C, cd C:/B和cd C:/A,

F9: 输入按下F7时,显示的历史记录的编号,可以直接执行该命令。

 

 

总结:

F1-F4:

这一组快捷键配合”Ctrl+←“以及“Ctrl+→”使用。 可以实现对当前命名的的快速编辑 功能。

其实F2更像vim中的fx命令,可以查找到该行的特定字符

     F4更像vim中的dfx命令,在fx定位后再配合一个d,删除到该位置。

所以我现在习惯先用F3,或者F8调出我想要执行的历史命令。

然后对这条命令使用”Ctrl+←“,“Ctrl+→”,F2,F4进行修改

 

F7,F8,F9:

这三个命令配合,可以最为bash中Ctrl+R的一个简单替代品。实现对历史记录中的命令进行搜索 的功能。

我现在的习惯用法是:

或者,输入命令的开头,再按F8定位,

或者,按F7,使用命令首字母定位(或者配合F9)。

posted @ 2011-04-07 20:53 RTY 阅读(1186) | 评论 (0)编辑 收藏

这是非常有用的一句话技巧,面对复杂路径更是有用。
按下shift和鼠标右键,在文件夹的空白处,即可出现带有“在此处打开命令行窗口”的命令。
也可点在某个文件夹上,即可在此文件夹下打开命令行窗口。

posted @ 2011-04-07 20:50 RTY 阅读(8078) | 评论 (4)编辑 收藏

一、lupdate 的命令行参数说明

 1 Usage:
 2     lupdate [options] [project-file]
 3     lupdate [options] [source-file|path|@lst-file] -ts ts-files|@lst-file
 4 
 5 lupdate is part of Qt's Linguist tool chain. It extracts translatable
 6 messages from Qt UI files, C++, Java and JavaScript/QtScript source code.
 7 Extracted messages are stored in textual translation source files (typically
 8 Qt TS XML). New and modified messages can be merged into existing TS files.
 9 
10 Options:
11     -help  Display this information and exit.
12     -no-obsolete
13            Drop all obsolete strings.
14     -extensions <ext>[,<ext>]
15            Process files with the given extensions only.
16            The extension list must be separated with commas, not with whitespace
17 .
18            Default: 'java,jui,ui,c,c++,cc,cpp,cxx,ch,h,h++,hh,hpp,hxx,js,qs,qml'
19 .
20     -pluralonly
21            Only include plural form messages.
22     -silent
23            Do not explain what is being done.
24     -no-sort
25            Do not sort contexts in TS files.
26     -no-recursive
27            Do not recursively scan the following directories.
28     -recursive
29            Recursively scan the following directories (default).
30     -I <includepath> or -I<includepath>
31            Additional location to look for include files.
32            May be specified multiple times.
33     -locations {absolute|relative|none}
34            Specify/override how source code references are saved in TS files.
35            Default is absolute.
36     -no-ui-lines
37            Do not record line numbers in references to UI files.
38     -disable-heuristic {sametext|similartext|number}
39            Disable the named merge heuristic. Can be specified multiple times.
40     -pro <filename>
41            Name of a .pro file. Useful for files with .pro file syntax but
42            different file suffix. Projects are recursed into and merged.
43     -source-language <language>[_<region>]
44            Specify the language of the source strings for new files.
45            Defaults to POSIX if not specified.
46     -target-language <language>[_<region>]
47            Specify the language of the translations for new files.
48            Guessed from the file name if not specified.
49     -ts <ts-file>
50            Specify the output file(s). This will override the TRANSLATIONS
51            and nullify the CODECFORTR from possibly specified project files.
52     -codecfortr <codec>
53            Specify the codec assumed for tr() calls. Effective only with -ts.
54     -version
55            Display the version of lupdate and exit.
56     @lst-file
57            Read additional file names (one per line) from lst-file.
58 


二、lrealease的命令行参数说明

 1 Usage:
 2     lrelease [options] project-file
 3     lrelease [options] ts-files [-qm qm-file]
 4 
 5 lrelease is part of Qt's Linguist tool chain. It can be used as a
 6 stand-alone tool to convert XML-based translations files in the TS
 7 format into the 'compiled' QM format used by QTranslator objects.
 8 
 9 Options:
10     -help  Display this information and exit
11     -idbased
12            Use IDs instead of source strings for message keying
13     -compress
14            Compress the QM files
15     -nounfinished
16            Do not include unfinished translations
17     -removeidentical
18            If the translated text is the same as
19            the source text, do not include the message
20     -markuntranslated <prefix>
21            If a message has no real translation, use the source text
22            prefixed with the given string instead
23     -silent
24            Do not explain what is being done
25     -version
26            Display the version of lrelease and exit
27 


三、示例说明
1. 提取aboutDialog.cpp欲翻译的内容到ts文件中

lupdate -codecfortr GB2312 aboutdialog.cpp -ts aboutdialog.ts

2.如何在程序中使用ts生成的qm文件,下面用硬代码来解释
 1 #include <QtGui>
 2 #include "mainwindow.h"
 3 
 4 int main(int argc, char *argv[])
 5 {
 6     QApplication app(argc, argv);
 7 
 8     QTranslator translator;
 9     bool b = false;
10     b = translator.load("aboutdialog.qm");
11     app.installTranslator(&translator);
12 
13 
14     MainWindow w;
15     w.show();
16 
17     return app.exec();
18 }
19 

3. 加载多个独立的qm文件。一个QTranslator对象只有最后load的才算数!
    QTranslator translator;
    bool b = false;
    b = translator.load("aboutdialog.qm");
    b = translator.load("mainwindow.qm");
    app.installTranslator(&translator);
说明:只有"mainwindow.qm" 文件被正常使用。

下面可以通过声明两个Translator对象进行load,然后安装就可以分模块使用了!
1     QTranslator translator1, translator2;
2     bool b = false;
3     b = translator1.load("aboutdialog.qm");
4     b = translator2.load("mainwindow.qm");
5     app.installTranslator(&translator1);
6     app.installTranslator(&translator2);

posted @ 2011-04-05 22:29 RTY 阅读(5380) | 评论 (0)编辑 收藏

第一、出现此问题需要下面条件:
1. 文本编码使用GB2312(源代码的文件编码格式)
2. 使用tr() 函数,加入开发人员注释
     如:
 this->setWindowTitle(tr("MyTestWindows","中文注释"));
3. pro文件使用默认设置
    无“CODECFORTR= ” 项

第二、参考官方文档的说明:
If your sources contain genuine non-Latin1 strings, lupdate needs to be told about it in the .pro file by using, for example, the following line:
CODECFORTR = UTF-8

其实,这种要求经过测试,发现是要求你的源代码文件编码格式必须是UTF-8
那么如何更合理的描述这个问题的最终解决办法呢?

第三、源文件编码格式和pro文件中的CODECFORTR = 编码格式要保持一致

也就是说,如果的你源文件编码全是GB2312的,那么就需要在Pro文件中加入以下这一项:
CODECFORTR = GB2312

posted @ 2011-04-05 11:06 RTY 阅读(3177) | 评论 (0)编辑 收藏

NOTICE: You are eligible for a free upgrade to the latest version.

Your free upgrade may require a new code. Please enter your name and email address into the form below then click submit. You will receive your (new) registration details and download instructions via email after your eligibility is confirmed by our system.

Your current registration details are listed below:
Registration Name: Free User
Authorization Code: GJCKX-PGNKM-FUJTD-MWLAR-LEEGI-JHKJT-SKBEC-TOCVX

posted @ 2010-12-12 23:30 RTY 阅读(232) | 评论 (0)编辑 收藏


QWidget *QWidget::window() const // 找到自己所属的窗体
{
    QWidget *w = (QWidget *)this;
    QWidget *p = w->parentWidget();
    while (!w->isWindow() && p) {
        w = p;
        p = p->parentWidget();
    }
    return w;
}
inline bool QWidget::isWindow() const // 返回是否是窗体
{ return (windowType() & Qt::Window); }
QPoint QWidget::mapTo(QWidget * parent, const QPoint & pos) const  //坐标映射
{
    QPoint p = pos;
    if (parent) {
        const QWidget * w = this;
        while (w != parent) {
            Q_ASSERT_X(w, "QWidget::mapTo(QWidget *parent, const QPoint &pos)",
                       "parent must be in parent hierarchy");
            p = w->mapToParent(p);
            w = w->parentWidget();
        }
    }
    return p;
}




posted @ 2010-12-06 22:40 RTY 阅读(898) | 评论 (0)编辑 收藏

仅列出标题
共31页: First 23 24 25 26 27 28 29 30 31