-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
评论区富文本展示问题 #6
Comments
|
方案1 先用TextArea,gif默认不能播放,给图片加上链接可以点击,点击后弹出窗口进行gif播放 |
使用qml的TextArea 展示html时发现网络图片会在第一次显示不出来,必须双击或改变窗口大小才显示出来,又或者相同的图片url第二次插入到TextArea里也能在首次显示出来。 Repeater {
id: repCmt
model: 5
delegate: TextArea {
width: parent
textFormat: Qt.RichText
persistentSelection: true
selectByMouse: true
readOnly: true
wrapMode: TextArea.Wrap
text:"<img src=\"https://static.yximgs.com/bs2/adminBlock/treasure-1598137811221-SKJNDStR.png\">"
}
} 这个问题的2个方案:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Qt富文本原生不支持gif动图,只能显示第一帧,评论区如果要显示gif用AnimatedImage 会cpu很高,排版效果很差
The text was updated successfully, but these errors were encountered: