Results 1 to 2 of 2

Thread: How to show and close a window inside a QObject without closing it?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default How to show and close a window inside a QObject without closing it?

    Hello!

    I have a software that is mainly executed from a QMainWindow class that is actually never shown (the software comprises a series fo QTimers that verifies the CPU's stats). The problem is that all times that I want to show and than close a window from this software (e.g. QMessageBox::about(...)), when this window is closed, the entire software is closed and I don't want that! I tried to eliminate the QMainWindow factor by passing all functions to a simple QObject class but the same thing happens: if I close a window, the entire software is closed.


    How can I avoid that so the software will not be closed all time I want to show a popup?


    Thanks,

    Momergil

  2. #2
    Join Date
    Dec 2012
    Posts
    90
    Thanks
    5
    Thanked 20 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to show and close a window inside a QObject without closing it?


  3. The following user says thank you to lanz for this useful post:

    Momergil (12th March 2013)

Similar Threads

  1. Replies: 3
    Last Post: 20th October 2010, 22:36
  2. Replies: 9
    Last Post: 16th May 2010, 16:21
  3. Window not closing or destroying
    By spraff in forum Qt Programming
    Replies: 5
    Last Post: 13th December 2008, 15:10
  4. How to close parent window from child window?
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2008, 11:40
  5. closing of window on pressing ESC key
    By raghvendramisra in forum Newbie
    Replies: 2
    Last Post: 7th January 2008, 02:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.