Skip to content

Chinese

A forum for those speaking Chinese
714 Topics 1.8k Posts
  • 使用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); …….. }
  • 在mainwindow上怎么做一个浮动的菜单栏?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    2 Posts
    3k Views
    L
    我在pro中引用了 opengl,去掉后窗口可以正常旋转了。
  • Qt5.1.0 重新编译选项 -openssl-linked 有人用过吗,怎么弄?

    3
    0 Votes
    3 Posts
    5k Views
    J
    我试过几种方法。 使用-openssl-linked的话,会在编译器确定openssl的依赖关系,而不是在运行期解析OpenSSL动态库的函数。但其实还是需要依赖libeay.dll和ssleay.dll的。 所以到www.openssl.org下载源码,不要下载OpenSSL-Win32,自己编译OpenSSL。这里还有一些麻烦导致链接错误就不说了。 其实还是觉得TDM-MinGW比MinGW好用,因为它默认是静态编译的。
  • 碰到个好奇怪的问题

    7
    0 Votes
    7 Posts
    5k Views
    E
    [quote author="jiangcaiyang" date="1375233704"]在游戏中一般是这么写的。 但是呢,我昨晚想了一下,我以前在使用QWidget的时候,还可以这么写。 @Widget::paintEvent( QPaintEvent* pEvent ) { DoSomeRendering( ); repaint( );// 或者update( )如果你需要来自队列的渲染指令的话 }@ 这样毫不影响对X按钮关闭的操作。[/quote] 的确啊~原来还以为repaint也是经过队列的~一直搞混了,多谢!准备为事件做个过滤,一旦开始刷新,只接受自己需要的事件...
  • [讨论]关于Qt下图形与图像的叠加显示方案

    11
    0 Votes
    11 Posts
    17k Views
    V
    我說了重點是 scene graph. Qt Quick Controls 用 scene graph rendering, QGraphicsScene 不是用 scene graph rendering, 所以 QGraphicsScene rendering效率理應 比Qt Quick Controls差. "http://stackoverflow.com/questions/16267404/qt-quick-vs-graphics-view-framework-qgraphicsscene":http://stackoverflow.com/questions/16267404/qt-quick-vs-graphics-view-framework-qgraphicsscene "In Qt4, I don't think QML is going to give any peformance advantage, as I think (did not verify now) there it is written on top QGraphicsView stuff." "numbers from running the photoviewer demo":http://blog.qt.digia.com/wp-content/uploads/2011/05/numbers.png