Results 1 to 6 of 6

Thread: setWindowFlags(Qt::FramelessWindowHint)

  1. #1
    Join Date
    Apr 2008
    Posts
    37
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Question setWindowFlags(Qt::FramelessWindowHint)

    hi,
    if I set setWindowFlags(Qt::FramelessWindowHint) what happen with the menu that it should be appearing when i right-click on the app at the task bar? any idea?

  2. #2
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: setWindowFlags(Qt::FramelessWindowHint)

    What do you mean what happens to the menu? Does it not appear?

  3. #3
    Join Date
    Apr 2008
    Posts
    37
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: setWindowFlags(Qt::FramelessWindowHint)

    See attachment!!!!

    if you set the FramelessWindowHint FLAG to windowFlags, it doesn´t show me that menu...
    any idea?
    Attached Images Attached Images

  4. #4
    Join Date
    Jul 2006
    Location
    Atlanta, GA
    Posts
    86
    Thanks
    26
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setWindowFlags(Qt::FramelessWindowHint)

    That's the context menu
    fnmblot
    --------------------------------------
    Gee Ricky, I'm sorry your mom blew up.

  5. The following user says thank you to fnmblot for this useful post:

    smarinr (30th April 2008)

  6. #5
    Join Date
    Apr 2008
    Posts
    37
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: setWindowFlags(Qt::FramelessWindowHint)

    thanks!!!

    so that! if I set that flag, the context menu dont show up... any idea how could I set the flag and also see the menu?
    Last edited by smarinr; 30th April 2008 at 20:29.

  7. #6
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setWindowFlags(Qt::FramelessWindowHint)

    To set the context menu, you need to override the QWidget::contextMenuEvent function of the widget.

    Hope u wanted to achieve this

  8. The following user says thank you to aamer4yu for this useful post:

    smarinr (30th April 2008)

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.