Skip to content

Chinese

A forum for those speaking Chinese
710 Topics 1.8k Posts
  • QThread::start: Thread creation error: 资源暂时不可用

    2
    0 Votes
    2 Posts
    4k Views
    W
    可能是你短时间内开的线程太多了,最好能贴上代码
  • Qt multi-screen

    2
    0 Votes
    2 Posts
    3k Views
    P
    http://stackoverflow.com/questions/3867712/start-program-on-second-monitorqt-framework
  • Qt5: Module 'QtMultimedia' does not contain a module identifier directive

    2
    0 Votes
    2 Posts
    5k Views
    Z
    装了个ffmpeg插件后,可以播放了。 @ sudo zypper in gstreamer-0_10-plugins-ffmpeg @ 但是还有这句: Module 'QtMultimedia' does not contain a module identifier directive - it cannot be protected from external registrations.
  • 新人报到.

    3
    0 Votes
    3 Posts
    3k Views
    D
    Welcome!
  • Vs2010 + qt 解析 JSON 文件的问题.

    2
    0 Votes
    2 Posts
    5k Views
    D
    4.x? musicJson是什么编码?可以直接构造QString?你再仔细看看...
  • Wiki 的分类用连字符还是下划线

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [已解决]如何创建及编辑wiki页面

    3
    0 Votes
    3 Posts
    3k Views
    D
    sidebar是有些混乱
  • 如何修改qmake 属性

    3
    0 Votes
    3 Posts
    5k Views
    R
    谢谢关注,该问题已经找到了解决办法,是在国外的一个论坛上有位大神提到的。 QT中有个配置,叫做 “qt.conf”,该文件的具体格式qt官方有解释。在该文件中,我们可以对qmake的各项参数进行设置,qmake 优先加载该配置文件中参数。 添加好该文件后再使用 qmake -query,你就会发现参数发生了变化。
  • 如何创建自定义的DockWidgetArea

    2
    0 Votes
    2 Posts
    5k Views
    D
    看QMainWindowLayout?不过不是public api src/gui/widgets下qmainwindowlayout*
  • QML 中Component.onCompleted到底在什么时候起作用啊。

    2
    0 Votes
    2 Posts
    6k Views
    D
    贴代码吧,不要在这里,可以放在gist.github.com之类的地方 print一下log,检查一下逻辑不可以么?
  • 请问SOQT编译出错都可能有什么原因呢?

    2
    0 Votes
    2 Posts
    4k Views
    D
    请提供英文错误信息,谢谢
  • [已解决]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
    7k 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
    谢谢。