English 中文(简体)
我如何解决因在Qt C++游戏中点击器被击落而造成的方案坠毁?
原标题:How can I resolve the program crash caused by destructor execution of a pointer object in a Qt C++ game?

我正在使用C++语言的Qt框架开发一种幸存者游戏。 目前,我正在执行加梅省储蓄功能。 我的游戏包括三个主要窗口:Maindow、ChooseScene和游戏。 游戏界面在游戏窗口上展示。 然而,由于我的窗户是作为点人实施的,这些窗户内部有多个点人。 在挽救游戏之后,我清醒了相关点,并把它们 null倒。 在开始新的游戏时,我再次给他们留下记忆。 我面临的问题是,每当我试图开始第二轮新的游戏时,方案就会失败。

我有一个名叫ChooseScene的主要Window窗户。 在座标的旁边还有另一个叫“游戏”的点子。 当我点击“Save and Exit”时,游戏和ChooseScene窗都被关闭。 与此同时,我利用QSettings来挽救数据,并删除这两个点,触发每个物体的脱轨器,删除其中的其他点成员。 最后,MainWindow窗口出现。 在缩编过程中,我增加了许多产出说明,以确定方案坠毁之处。 最后,我发现,该坠毁事件是在执行游击器之后发生的。 然而,我不敢解决该问题。 我寻求援助帮助确定和解决这一难题。 自2006年以来 我是开端人,我的法典很长,横跨1 000条。 如果可能的话,最好收到关于如何充分执行加梅省储蓄功能的建议。

我的法典链接:

问题回答

暂无回答




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签