Results 1 to 2 of 2

Thread: unclosable program

  1. #1
    Join Date
    Mar 2014
    Location
    USA
    Posts
    82
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default unclosable program

    I want to write a program that starts at start up, and then can't be closed. It's a user log program that tracks when the user is at the keyboard and if they close the program, it won't be able to track whether they are on or not. It's a shared computer so it can have multiple users logged into a single windows user session. Is there a way to make a program persistent with the only way to close it is to go into Task Manager? I realize that with Task Manager you can close anything, there's no way around that. I customized the flags so that the CloseButtonHint is not enabled, but the user can still right click the icon on the task-bar and close it that way.

  2. #2
    Join Date
    Mar 2014
    Location
    USA
    Posts
    82
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: unclosable program

    Found a solution. re-implement closeEvent(QCloseEvent *event) and have it run event->ignore() every time closeEvent is called.

Similar Threads

  1. Replies: 4
    Last Post: 17th September 2012, 16:23
  2. Replies: 0
    Last Post: 20th August 2010, 14:45
  3. Replies: 1
    Last Post: 30th April 2010, 14:25
  4. running external console program by gui program
    By alireza.mixedreality in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2010, 19:05
  5. Replies: 7
    Last Post: 19th January 2008, 16:29

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.