Results 1 to 3 of 3

Thread: Window On Top

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Posts
    11
    Thanks
    6

    Default Window On Top

    Is there anyway i can make it so my window stays ontop or i cant exit out of it for x seconds

    what im trying to do is make an alarm cloke so i want to like freeze the screen well the music plays so i cant turn it off and the unfreez it after....

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Window On Top

    Is there anyway i can make it so my window stays ontop or i cant exit out of it for x seconds
    Yes and yes.

    What have you tried?

  3. #3
    Join Date
    Jun 2012
    Location
    Iran , Tehran
    Posts
    93
    Thanks
    5
    Platforms
    Unix/X11 Windows Android

    Default Re: Window On Top

    you can use windows API function setWindowPos()
    but you must learn about window handles and some related things.
    Life is about making the right decisions and moving on.

Similar Threads

  1. Replies: 1
    Last Post: 10th April 2012, 16:18
  2. Replies: 6
    Last Post: 9th November 2011, 04:31
  3. Replies: 2
    Last Post: 17th February 2011, 12:30
  4. Changing window states breaks window manager
    By sebastian.f in forum Newbie
    Replies: 3
    Last Post: 30th June 2009, 14:40
  5. Replies: 11
    Last Post: 4th June 2008, 07:22

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.