Results 1 to 4 of 4

Thread: Paint over childs

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Location
    Russia, Moscow
    Posts
    86
    Thanks
    2
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4

    Question Paint over childs

    I have QMainWindow and reimplement paintEvent. When showing modal dialogs i want shade whole main window, how this do on more sites like http://www.crossplatform.ru/ when clicking on screenshots, but i can't find info how to paint over childs (QWidgets).
    I would not want to override paintEvent of all childs...

    I hear about solution with transparent QWidget (as Layout) and raise()/lower(), but this sounds like as overhead.

    P.S.: First picture - original, Second - shaded (what i want), Third - what i have. (i don't have Photoshop and use invert colors on 2nd picture instead shade).
    Attached Images Attached Images

Similar Threads

  1. Drawing standard widgets using a custom paint engine
    By Waywocket in forum Qt Programming
    Replies: 26
    Last Post: 21st October 2010, 20:40
  2. Drawing a widget in QItemDelegate's paint method
    By darkadept in forum Qt Programming
    Replies: 17
    Last Post: 11th August 2009, 05:15
  3. problem with paint and erase in frame
    By M.A.M in forum Qt Programming
    Replies: 9
    Last Post: 4th May 2008, 20:17
  4. cairo4qt 0.9 - a cairo based paint engine for Qt4
    By dragchan in forum Qt-based Software
    Replies: 0
    Last Post: 18th May 2007, 05:07
  5. paint QTreeView item !!
    By mcenatie in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2006, 14:24

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.