Results 1 to 2 of 2

Thread: Why do I still see you?

  1. #1
    Join Date
    May 2009
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Red face Why do I still see you?

    Hey guys,

    I have the following code:

    Qt Code:
    1. QApplication a(argc, argv);
    2. Widget w;
    3. w.setMask(QRegion(0,0,w.width(),w.height()));
    4. w.show();
    5. return a.exec();
    To copy to clipboard, switch view to plain text mode 

    The widget still shows up, without the title bars. I find this strange, can someone explain this to me? Thanks

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    507
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Why do I still see you?

    Your region masks the whole widget, so of course it ist completely visible.

    Ginsengelf

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.