Building my application against wxQt, I got the error in the subject line.
The library is built successfully with configure--enable-debug --with-qt
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #25742 as not planned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
It seems like there is a legitimate problem here. Layout() window method is hidden by an enum:
https://github.com/wxWidgets/wxWidgets/blob/510c5d1e084375cafcb9c47c5162074f21b3db1e/include/wx/qt/mdi.h#L39
I don't know if it makes sense to call Layout() on a wxMDIParentFrame, but if something did, it could cause a significant change in behavior with only a compiler warning.
diff --git a/samples/mdi/mdi.cpp b/samples/mdi/mdi.cpp index 14453fff87..cd259cfa84 100644 --- a/samples/mdi/mdi.cpp +++ b/samples/mdi/mdi.cpp @@ -218,6 +218,8 @@ MyFrame::MyFrame() // connect it only now, after creating m_textWindow Bind(wxEVT_SIZE, &MyFrame::OnSize, this); + + Layout(); } MyFrame::~MyFrame()
samples/mdi/mdi.cpp:222:13: warning: statement has no effect [-Wunused-value]
222 | Layout();
| ^
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Reopened #25742.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
If the OP provided a way to reproduce the problem, I wouldn't have closed it, but I didn't feel like wasting my time on doing something that would be expected from any bug report.
Anyhow, this enum should probably be renamed to something else, e.g. Kind maybe, to avoid the name conflict. @AliKet what do you think?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #25742 as completed via 06a4a1d.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()