Skip to content

Chinese

A forum for those speaking Chinese
719 Topics 1.8k Posts
  • Sourceinsight 语言包 qt

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 招聘QT工程师 --- 挑战行业难题

    2
    0 Votes
    2 Posts
    4k Views
    W
    用Qt的人是比较少,我是网上搜Qt的时候转过来的。 可惜我人在广州,不然倒是可以考虑!我之前用过MFC,用了Qt后就再也不想用MFC了,现在算来接触Qt也有4年的时间,只是以后的工作还不知会不会用得到了。
  • 怎么修改工具栏上自带右键菜单的文本内容?

    3
    0 Votes
    3 Posts
    4k Views
    L
    已解决: 重写QMainWindow的createPopupMenum(); QMenu MainWindow::createPopupMenu() { QMenu menu = QMainWindow::createPopupMenu(); QList<QAction> list = menu->actions(); list.at(0)->setText(""); list.at(1)->setText("*); return menu; }
  • 大家好啊,我是新人,也是新手

    2
    0 Votes
    2 Posts
    1k Views
    R
    多多交流呀,QQ2281570025
  • 大家好,请问怎么设置程序在android中自启动?

    2
    0 Votes
    2 Posts
    2k Views
    Z
    我也想知道 , 要是官方能出几个关于qt for Android的例子就好了.服务是怎么实现的,开机启动是怎么实现的?
  • 使用QLibrary遇到的问题

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QT for android 如何实现对手机周边wifi信号的扫描

    4
    0 Votes
    4 Posts
    5k Views
    Z
    可以看看wpa supplicant, 源码里有个qt4版的,可以参考下。
  • Qt4.8 opengl 求助

    2
    0 Votes
    2 Posts
    3k Views
    J
    多线程这一部分其实来说用得少,一般来说渲染都只有一个线程。在Qt5.1中有一个多线程渲染的例子hellowindow,你可以运行看看。
  • 如何支持多块触摸屏?

    2
    0 Votes
    2 Posts
    2k Views
    J
    可以。具体我没有操作过,不过在Qt5.1或以后的版本中,可以参考QWindow、QScreen。
  • QT 5.1的两个Bug

    2
    0 Votes
    2 Posts
    3k Views
    J
    谢谢分享,不过在Qt5.1中QFileDialog没有getFileName()函数,倒是有一个getOpenFileName()函数。 1、如果的确需要获得扩展名的话,使用QFileInfo::suffix()结合QFileDialog即可。 2、没有遇到过。
  • 求教QGLWidget与QWidget一同布局后的闪烁问题

    2
    0 Votes
    2 Posts
    4k Views
    J
    这当然不行了。因为QGLWidget和QWidget的其它子类的更新方式不一样的。详细来讲,QGLWidget是用OpenGL渲染的,其余的是用Qt paint engine来渲染的。
  • 求助:关于调用Win API 参数含中文

    3
    0 Votes
    3 Posts
    3k Views
    J
    建议一下,路径不要写死,如果由于什么原因的确需要写路径,那么就写相对路径,不写绝对路径,而且相对路径必须不含CJK字符。这样做有利于程序的移植。 在Windows中路径使用GBK编码,但是Qt系统使用UTF-8来识别,必定会造成不一致,可能需要设置QTextCodec::codecForName( "GB18030-0" )。Qt支持这些编码: Apple Roman Big5 Big5-HKSCS CP949 EUC-JP EUC-KR GB18030-0 IBM 850 IBM 866 IBM 874 ISO 2022-JP ISO 8859-1 to 10 ISO 8859-13 to 16 Iscii-Bng, Dev, Gjr, Knd, Mlm, Ori, Pnj, Tlg, and Tml JIS X 0201 JIS X 0208 KOI8-R KOI8-U Shift-JIS TIS-620 TSCII UTF-8 UTF-16 UTF-16BE UTF-16LE UTF-32 UTF-32BE UTF-32LE Windows-1250 to 1258
  • QNetworkAccessManager SSL双向验证

    5
    0 Votes
    5 Posts
    8k Views
    T
    使用WinHttp或NSS Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other security standards. [quote author="sinotitan" date="1378697173"]客户端证书都保存在USBKey中,私钥是读不出来的,如何处理?[/quote]
  • 5.11安装问题

    3
    0 Votes
    3 Posts
    2k Views
    W
    你试过了吗???鄙视张嘴就来,自以为是的回复。搞技术的,做事踏实点!
  • QT/Embedded 哪个版本开始支持OpenGL?

    2
    0 Votes
    2 Posts
    2k Views
    J
    Qt4.2开始。
  • 0 Votes
    4 Posts
    4k Views
    W
    你好,可以说一下你的步骤吗?我在windows下先安装dbus-1.4.1,然后再编译QDBus源码生成QDBus模块,最后运行自带的example时无法通信,连接不上总线。
  • QT 5.1程序分布的问题

    2
    0 Votes
    2 Posts
    2k Views
    S
    plugin没有需要带上 在plugins\sqldrivers下,看下qt部署部分 http://qt-project.org/doc/qt-4.8/deployment-windows.html
  • Bug ? QSqlQuery::lastInsertId() const

    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, AFAIK, lastInsertId reports the id of the most recent inserted record. The action of deleting them doesn't change that value. The next insert query will update it
  • 如何在quick control中改变button上的显示文字的颜色.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    2 Posts
    3k Views
    7611534547
    class A :public QGraphicsObject { A() { QLineF line(…..); QGraphicsLineItem* lineSeg = new QGraphicsLineItem(line); lineSeg->installSceneEventFilter(this); registerGraphicsItemInScene(lineSeg); } bool sceneEventFilter(QGraphicsItem * watched, QEvent * event) { QMessageBox msgBox; msgBox.setText(_blockItem->name()); msgBox.exec(); switch(event->type()) { case QEvent::MouseButtonDblClick: return true; case QEvent::MouseButtonPress: return true; case QEvent::MouseButtonRelease: return true; } return QGraphicsItem::sceneEventFilter(watched, event); } } main() { A a; registerGraphicsItemInScene(&a); …….. }