Results 1 to 3 of 3

Thread: QWidget "allways on top + modal to all windows"

  1. #1
    Join Date
    Jul 2010
    Posts
    23
    Thanks
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Question QWidget "allways on top + modal to all windows"

    Im working with windows platform and I need to know if there is a way to create a widget (that is not a full screen widget, it covers just a part of it) that is allways on top and it behaves like a modal window (so the user cant press other part of the uncovered window and remove the focus of the widget). I have thinked in a full screen transparent widget but I guess there is a better way to doit.


    Thanks
    Ramiro

  2. #2
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: QWidget "allways on top + modal to all windows"

    Quote Originally Posted by boblatino View Post
    I have thinked in a full screen transparent widget but I guess there is a better way to doit.
    Yes, there is. You can look at Window Flags Example.

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

    boblatino (24th July 2010)

  4. #3
    Join Date
    Jul 2010
    Posts
    23
    Thanks
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: QWidget "allways on top + modal to all windows"

    Quote Originally Posted by saa7_go View Post
    Yes, there is. You can look at Window Flags Example.
    Thanks, I will play with the example to see what is the combination of flags to do the trick.

    Thanks
    Ramiro

Similar Threads

  1. "new" + "delete" a QWidget and its children
    By vkincaid in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2010, 21:51
  2. Replies: 2
    Last Post: 18th November 2009, 03:43
  3. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  4. QWidget pixmap AFTER displaying html ("rich text")
    By gavrilo princep in forum Newbie
    Replies: 0
    Last Post: 17th July 2007, 01:59
  5. Convert Windows "HWND" to QWidget* pointer?
    By gerome69 in forum Qt Programming
    Replies: 4
    Last Post: 20th September 2006, 13:03

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.