Are there any useful tools for diagnosing Qt layout and spacing problems?

后端 未结 4 2116

See also related question: How do you debug Qt layout problems

I\'ve got some complex widget hierarchies that I\'m trying to lay out, and I run into the usual p

4条回答
  •  时光取名叫无心
    2021-02-05 06:05

    I had a related follow-on question in another thread to which Dmitry came up with a great method that led to a good solution: Drawing an overlay on top of an application's window

    EDIT: I've also found a useful technique hidden away in the documentation of QLayout::itemAt() which shows how to iterate through the QLayoutItems in a layout and draw their rectangles

提交回复
热议问题