Skip to content

Chinese

A forum for those speaking Chinese
719 Topics 1.8k Posts
  • [已解决]QT在fedora16下的安装问题

    Locked
    4
    0 Votes
    4 Posts
    6k Views
    R
    程序文件有问题,我以前传文件到开发板上去的时候遇到过
  • AM / PM 「上午」和「下午」翻譯處理

    5
    0 Votes
    5 Posts
    9k Views
    Q
    我用楼上的建议,写了如下的示例代码: @ #include <QtCore/QCoreApplication> #include <QtCore/QLocale> #include <QtCore/QDateTime> #include <QtCore/QTextStream> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QLocale chineseLocale(QLocale::Chinese); QDateTime currentDateTime = QDateTime::currentDateTime(); QString TimeString = chineseLocale.toString(currentDateTime, QString("AP hh:mm:ss")); QString TimeLongFormatString = chineseLocale.toString(currentDateTime, QLocale::LongFormat); QString TimeShortFormatString = chineseLocale.toString(currentDateTime, QLocale::ShortFormat); QString TimeNarrowFormatString = chineseLocale.toString(currentDateTime, QLocale::NarrowFormat); QTextStream cout(stdout, QIODevice::WriteOnly); cout<<TimeString<<endl; cout<<TimeLongFormatString<<endl; cout<<TimeShortFormatString<<endl; cout<<TimeNarrowFormatString<<endl; cout<<chineseLocale.amText()<<endl; cout<<chineseLocale.pmText()<<endl; return a.exec&#40;&#41;; } @ 输出结果为 PM 06:40:38 2012年8月24日星期五 中国标准时间PM6时40分38秒 12-8-24 PM6:40 12-8-24 PM6:40 上午 下午 诚如楼上所言,前四行中的PM(AM)翻译为下午(上午)更为合适些! [quote author="wwycheuk" date="1332551640"]如無人反對我就會將繁體中文版 AM 和 PM 翻譯為「上午」和「下午」[/quote]
  • QLabel显示大分辨率jpg图片

    4
    0 Votes
    4 Posts
    8k Views
    S
    [quote author="Gerolf" date="1345621869"]As it is in the chinese forum, I expect the question to be in chinese...[/quote] +1 :) [quote author="AcerExtensa" date="1345537523"]If you would write your question in english, maybe I or somebody else could help you...[/quote] Try Google Translate here it what it says bq. Used the QImage to generate object, loaded large resolution jpg picture occasionally fail, and QPixmap generated object will be loaded on, can not display pictures. And once a build to fail, it will give rise to other modules the QImage generate also a problem. This is not what, Is there any way around this?
  • [已解决]“定制QML扩展插件”载入失败?求指教

    4
    0 Votes
    4 Posts
    10k Views
    C
    哈哈真的很巧啊。很久没来论坛了,qmldump确实好用,当时我是装回Qt SDK 1.1.2貌似就不用qmldump了,。谢谢楼上的老师们:-) 把解决方案记录了一下,见:http://iyinchao.cn/?p=41
  • QString的乱码问题

    2
    0 Votes
    2 Posts
    6k Views
    D
    呵呵,如果这样做,Qt岂不是知道倒退了10多年? 你提到这个是10多年前的做法吧,直接导致同一个程序无法跨平台了。在utf8盛行的时代,而VC6/7/8/9/...,默认采用locale字符集,也算是与时代有些格格不入了
  • 有人对向Qt Labs China投稿感兴趣么?

    4
    0 Votes
    4 Posts
    5k Views
    T
    目前网址: http://blog.qt.digia.com/cn/
  • 0 Votes
    2 Posts
    4k Views
    Z
    难道没有人知道吗???
  • 如何在Ubuntu的X-window上跑QT?

    2
    0 Votes
    2 Posts
    5k Views
    T
    Please see this post: http://qt-project.org/forums/viewthread/17193
  • 0 Votes
    3 Posts
    5k Views
    N
    谢谢。
  • 编译qt4.8.1遇到错误

    5
    0 Votes
    5 Posts
    8k Views
    X
    在哪结束自己的帖子
  • 如何在wince6上运行qml文件

    2
    0 Votes
    2 Posts
    4k Views
    D
    重复发帖,http://qt-project.org/forums/viewthread/15785
  • Qml在wince6.0上如何运行?

    2
    0 Votes
    2 Posts
    5k Views
    J
    I have successful deploy qml on wince6.0,The required dlls contain: QtScriptd4.dll QtNetworkd4.dll QtSqld4.dll QtGuid4.dll QtDeclaratived4.dll QtCored4.dll msvcr80d.dll and if i want to use qmlfile,the qml file must be deploy with exe program. haha It is so excited to use qml on wince6.0!!!
  • 0 Votes
    2 Posts
    4k Views
    D
    duplicate, http://qt-project.org/forums/viewthread/11197
  • Do you like PyQt/PySide?

    2
    0 Votes
    2 Posts
    5k Views
    D
    三翻领好像玩这个 http://www.sanfanling.cn/
  • Qtwebkit 无法正常显示flex iframe

    2
    0 Votes
    2 Posts
    5k Views
    D
    建议你去QtWebKit的相关站点咨询,这里也许是个入口: http://trac.webkit.org/wiki/QtWebKit good luck
  • [新闻](松下航空)qt应用征集

    5
    0 Votes
    5 Posts
    6k Views
    D
    有没有这个事件的公司网页链接呢? 好像没有见到奖励办法
  • 中文乱码问题,求解决,帮忙一下

    5
    0 Votes
    5 Posts
    7k Views
    D
    一般不建议使用setCodecForTr和setCodecForCStrings 源码中一般不要使用非ascii的编码 例如可以使用QString::fromUtf8("\u4e00")这样的代码,中文“一”
  • 关于qt站点导航和一些基本问题的请教,感谢!

    2
    0 Votes
    2 Posts
    4k Views
    D
    只能说你有点懒? 目前各项内容应该都在迁移中 qt.nokia.com->qt-project.org 学git吧,本站的wiki都有的 http://qt-project.org/wiki/Building_Qt_5_from_Git http://qt-project.org/wiki/How_To_Build_Qt_Creator_From_Source http://qt-project.org/wiki/Category:HowTo Qt Labs, http://labs.qt.nokia.com/ Qt Labs China, http://labs.qt.nokia.com.cn/ Qt Quarterly, http://doc.qt.nokia.com/qq/ http://qt-project.org/quarterly qt-project.org是Qt开源项目主页,qt.nokia.com相当于Nokia的Qt部门的主页 如果只是做应用,下载sdk即可,如果你想调试或者开发Qt库和Qt Creator,就下载Qt和Creator的源代码 建议你去Google,应该有很多浏览器插件支持视频下载的
  • [提问] 如何正确使用Glow效果

    2
    0 Votes
    2 Posts
    5k Views
    J
    原因出在anchors.fill 和 source, 修改如下: @ // anchors.fill: parent x: text.x; y: text.y width: text.width; height: text.height source: text @
  • 大家好,有没有好玩的qt项目建议下?

    8
    0 Votes
    8 Posts
    15k Views
    C
    关注Qt5,关注Qt/QML/JS :-)