Results 1 to 5 of 5

Thread: Custom popup with irregular shape

  1. #1
    Join Date
    Aug 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Custom popup with irregular shape

    Not sure if it is a right place for such question, but: is it possible to create in Qt custom popup with irregular shape? (sth like this: http://i48.tinypic.com/ndwtgk.jpg)

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom popup with irregular shape

    Yes, it is possible. There are options to use QWidget::setMask() or Qt::WA_TranslucentBackground attribute.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Default Re: Custom popup with irregular shape

    or use windows API function setWindowRgn directly.
    Life is about making the right decisions and moving on.

  4. #4
    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: Custom popup with irregular shape

    or use windows API function setWindowRgn directly.
    Wont bring much under X (as the user marked as his platform).
    ==========================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.

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

    Default Re: Custom popup with irregular shape

    lol ........
    :-)
    Life is about making the right decisions and moving on.

Similar Threads

  1. Replies: 1
    Last Post: 25th May 2012, 16:00
  2. Replies: 12
    Last Post: 1st May 2011, 11:38
  3. Popup Menu not closing after clicking custom widget
    By stefanadelbert in forum Qt Programming
    Replies: 5
    Last Post: 15th April 2010, 05:38
  4. Custom Shape Widget (resize)
    By PiXeL16 in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2007, 07:00
  5. How to Fill custom shape?
    By arunb in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2006, 14:08

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.