Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8810485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:07:48+00:00 2026-06-14T03:07:48+00:00

I am following a tutorial for a word processor for my QT module at

  • 0

I am following a tutorial for a word processor for my QT module at uni.

It has asked me to put set this attribute:

MainWindow::setAttribute(Qt::WA_DeleteOnClose);

the problem comes when i run the application it causes an error saying that the application has closed unexpectedly.

Also it asked me to make a actionExit action and add to the file toolbar, which doesnt show, i am guessing that it is due to the fact that i am writing it on OSx and the exit/quit is taken care for you with the cmd+Q shortcut.

I was wondering if anyone could shed some light on this problem for me so that i know for future reference. if needed i can post the tutorial + source code.

Thanks

edit: backtrace from the debugger(hope this is correct)

    0   __pthread_kill      0   0x7fff8eaff212  
1   pthread_kill        0   0x7fff86f7eaf4  
2   abort       0   0x7fff86fc2dce  
3   free        0   0x7fff86f96959  
4   MainWindow::~MainWindow mainwindow.cpp  22  0x100002cff 
5   QObject::event      0   0x100e48906 
6   QWidget::event      0   0x1000ecd5e 
7   QMainWindow::event      0   0x10049cadb 
8   QApplicationPrivate::notify_helper      0   0x10009593d 
9   QApplication::notify        0   0x10009bdc4 
10  QCoreApplication::notifyInternal        0   0x100e3417c 
11  QCoreApplicationPrivate::sendPostedEvents       0   0x100e355a0 
12  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__      0   0x7fff90925101  
13  __CFRunLoopDoSources0       0   0x7fff90924a25  
14  __CFRunLoopRun      0   0x7fff90947dc5  
15  CFRunLoopRunSpecific        0   0x7fff909476b2  
16  RunCurrentEventLoopInMode       0   0x7fff8d0f60a4  
17  ReceiveNextEventCommon      0   0x7fff8d0f5d84  
18  BlockUntilNextEventMatchingListInMode       0   0x7fff8d0f5cd3  
19  _DPSNextEvent       0   0x7fff91a00613  
20  -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]        0   0x7fff919ffed2  
... <More>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:07:49+00:00Added an answer on June 14, 2026 at 3:07 am

    Is your MainWindow object declared on the stack, by any chance? If so, then DeleteOnClose is not a good idea, simply because deleting an object that is on the stack is an error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed postgresql and geodjango on Mac OSX following this tutorial word for word.
Following this tutorial and running into trouble. [TestMethod] [ExpectedException(typeof(Exception))] public void VerifyPropertyNameMethod_NonExistentPropertyString_ThrowsException() { var
Following this tutorial (http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application), I learned how to save data and do concurrency checks
i'm following this tutorial: http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide and downloading my own source of mod_wsgi. The problem
I'm trying to follow this tutorial to made a Word doc template that i
I been following a tutorial word for word but i get an error which
I'm trying the following tutorial: http://henrik.nyh.se/2007/03/ruby-wordwrap-method It has a block that needs to be
I tried to run HtmlUnit with Jython following this tutorial: http://blog.databigbang.com/web-scraping-ajax-and-javascript-sites/ but it does
I'm following this tutorial http://www.gamedev.net/page/resources/_/technical/game-programming/how-to-load-a-bitmap-r1966 and I got the problem of wrong value for
I am following the following tutorial ( http://www.highoncoding.com/Articles/642_Creating_a_Stock_Widget_in_ASP_NET_MVC_Application.aspx ) on using ajax to render

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.