如何迭代QT子窗口? [英] How can I iterate QT child windows?
问题描述
您好全部
我使用的应用程序具有带有Qt5QWindowIcon类的Windows.我已经通过该Windows类注意到子窗口现在是父窗口的一部分-甚至是对话框,即子窗口没有单独的句柄-似乎是嵌入式"的.
过去,我可以简单地将QT_USE_NATIVE_WINDOWS设置为1,但是如果现在执行此操作,则该应用程序将根本无法加载,因此大概与更新QT有关.
我真的很希望能够找到一些方法来识别子窗口并获取其位置和位置.尺寸等-如果不能的话,这不是世界的尽头,但如果可以的话,它将使生活变得更加轻松!
有什么想法吗?
非常感谢
Hello All
An application I use has windows with the Qt5QWindowIcon class. I have noticed with this windows class that child windows are a part of the parent window now - even dialog boxes, i.e. there is no separate handle for the child window - it seems "embedded".
In the past, I could simply set QT_USE_NATIVE_WINDOWS to 1, however if I do that now then the app won't load at all, so this is presumably to do with an update to QT.
I would really like to be able to find some way to identify the child windows and get their locations & dimensions etc - it's not the absolute end of the world if I can't but it would make life a lot easier if I could!
Any ideas?
Many thanks
推荐答案
我真的很想能够找到一种方法来识别子窗口并获取其位置&尺寸等
I would really like to be able to find some way to identify the child windows and get their locations & dimensions etc
此问题应在软件产品的制造商处提出:
https://forum.qt.io/
This question should be asked at the manufacturer of your software product:
https://forum.qt.io/
这篇关于如何迭代QT子窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!