Skip to content

Chinese

A forum for those speaking Chinese
714 Topics 1.8k Posts
  • QT的Can总线开发

    Unsolved
    3
    0 Votes
    3 Posts
    10k Views
    YiQinY
    好的 谢谢 我这就去看看~~
  • 微波消解仪、凯氏定氮仪Qt工程代码发布,带LibQQt v1.0

    Unsolved
    5
    1 Votes
    5 Posts
    3k Views
    D
    @jiancaiyang 我主要用widgets+qss制作。qml还要再研究研究
  • QtQuick ListView Delegate自适应行高

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    jiancaiyangJ
    自适应高度需要在Delegate做到父控件根据子控件的大小来改变大小。一个有用的属性是 Item::childrenRect。 Qt Quick Controls 2里面的控件布置得都挺好的,因为都继承Control这个类。
  • treeview的样式

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    jiancaiyangJ
    需要自己实现QTreeView。看看github上是否有现成的控件可用?据我所知,Qt没有做到完全一样的效果。
  • 互相重叠的不规则图形如何处理事件和生成动态列表?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    jiancaiyangJ
    MouseArea里面有propagateComposedEvents这个属性,你可以详细看看文档。F1即可。
  • qt能否直接读取.vsd文件?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    jiancaiyangJ
    一般Qt不和任何行业绑定,因此需要第三方库的支持。
  • 请问windows平台如何获取当前的网络速度?

    Unsolved
    3
    0 Votes
    3 Posts
    3k Views
    T
    @joeQ 我去看看。十分感谢。🙏
  • treeview获取节点的路径

    Unsolved
    7
    0 Votes
    7 Posts
    5k Views
    YiQinY
    @joeQ 你好用第二个中文就显示出来了,我先实现点击treeview下面的一个节点(文件夹),然后遍历里面的.png文件在listview中显示,请问该怎么做? 我的思路是点击节点之后,往上获取路径,得到文件夹的绝对路径,然后在listview中遍历这个绝对路径的文件,请问有什么相应的代码或例程可以推荐的嘛??我想实现的效果图如下:[image: c2c87bbb-9161-45de-9c6a-f2b5ff76a272.png]
  • QWebengineView 無法使用 Google Map APIs?

    Unsolved
    1
    0 Votes
    1 Posts
    955 Views
    No one has replied
  • 有没有大佬帮忙看看这个简单问题

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    joeQJ
    @YinseDemo 调试一下看看吧,估计是指针问题,或者内存问题。
  • 怎么用qtcreator,将文件部署到嵌入式linux设备上。

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    jiancaiyangJ
    看看生成的Makefile有没有复制main.o文件。这样可以把错误分解。
  • qt for android show Rectangle not true

    Unsolved
    2
    0 Votes
    2 Posts
    767 Views
    X
    import QtQuick 2.2 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.0 import QtQuick.Window 2.2 ApplicationWindow { id:root; title: qsTr("Hello World") width: Screen.width height: Screen.height visible: true property real dpScale: 1.5; readonly property real dpi: Math.max(Screen.pixelDensity * 25.4 / 160 * dpScale, 1); Rectangle{ anchors.fill:parent; z:1; RowLayout{ spacing:1*dpi; anchors.bottom:parent.bottom; Rectangle{ width:(Screen.width/3)*dpi; height:20*dpi; color:"blue"; Image{ } } Rectangle{ width:(Screen.width/3)*dpi; height:20*dpi; color:"red"; Image{ } } Rectangle{ width:(Screen.width/3)*dpi; height:20*dpi; color:"blue"; Image{ } } } } }
  • LibQQt 1.0 and PyMake(PyCmd).py 1.0

    Moved Solved
    1
    1 Votes
    1 Posts
    926 Views
    No one has replied
  • 子窗体显示的时候怎么让父窗体阻塞并且子窗体可以任意移动?

    Unsolved
    4
    0 Votes
    4 Posts
    4k Views
    CN_SimoC
    窗口类都有一个成员函数可以设置窗口是否模态,大概语法是setWindowModality(Qt::NonModal | Qt::Modal), 因为默认就是模态的,所以不用自己设置。
  • 0 Votes
    7 Posts
    7k Views
    joeQJ
    @CN_Simo 您是在MainWindow的close事件中,发射信号进行清理关闭工作的。 Qt signal and slot确实很方便。 可是有时候也会造成一些不必要的麻烦。很多时候,也可以传递对象的指针,直接在对应的地方调用对象的函数即可。
  • Run .EXE without Qt

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    SGaistS
    That error can mean many things. You have to give more details about your application and its dependencies.
  • [文章] QML Snapshot Testing與TDD的連㩗

    1
    1 Votes
    1 Posts
    848 Views
    No one has replied
  • MQTT在QT client

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    SeenuS
    @kerwin Hi, QMQTT is a third party library , we should use c++ MQTT , should download the code , it's c code ,make library and then use in Qt.
  • 在QOpenGLWidget上用QPainter绘制图形问题

    Solved
    4
    0 Votes
    4 Posts
    5k Views
    jiancaiyangJ
    OpenGL就是一个很大的状态机。如果不恢复渲染状态的话,在驱动层执行渲染就会遇到非期望的结果。
  • QT FoxPro连接求助

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    jiancaiyangJ
    这种更多的是在数据库层面解决,是否语法错误什么的,和Qt关系很小。