Results 1 to 2 of 2

Thread: close button in twm - WM_DELETE_WINDOW issue

  1. #1
    Join Date
    Jun 2007
    Location
    India
    Posts
    33
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question close button in twm - WM_DELETE_WINDOW issue

    Hi all,

    Stuck with an issue on close[X] button on title bar.
    Our app runs through (Windows) VNC Client using twm - a lightweight window manager from Fedora 7[kinda stuck with that distro ]. I have reimplemented the close() call for additional functionality in my app. Now when the [X] button is pressed, it does not perform those calls, and the subprocesses generated while the app was in action does not get killed. The default QPushButton at the bottom of the dialog does the job well though.

    I did some research and found that app needs to catch WM_DELETE_WINDOW message. I am currently working on it. Meanwhile wanted to check if someone had faced this issue before / someone had found a solution. Any pointers would be much appreciated.
    Design is easy. All you do is stare at the screen until drops of blood form on your forehead.
    -Marty Neumeier

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: close button in twm - WM_DELETE_WINDOW issue

    I have reimplemented the close() call for additional functionality in my app. Now when the [X] button is pressed, it does not perform those calls, and the subprocesses generated while the app was in action does not get killed. The default QPushButton at the bottom of the dialog does the job well though.
    Do you mean by that, that the close() slot is not being called?
    Can you post your reimplementation?
    Is this a QWidget subclass or a higher leverl, QDialog or QMainWindow?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 2
    Last Post: 6th May 2011, 08:02
  2. Replies: 2
    Last Post: 26th April 2011, 11:44
  3. Close Button
    By Lycus HackerEmo in forum Newbie
    Replies: 4
    Last Post: 30th December 2009, 05:27
  4. close button for tabwidget
    By sepehr in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2009, 13:57
  5. Close button in a tab
    By mitro in forum Newbie
    Replies: 2
    Last Post: 16th May 2008, 10:22

Tags for this Thread

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.