Results 1 to 2 of 2

Thread: Qt5: Mac OS Issue, trying to suppress popup menu in QMainWindow titlebar/proxy icon.

  1. #1
    Join Date
    Apr 2006
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post Qt5: Mac OS Issue, trying to suppress popup menu in QMainWindow titlebar/proxy icon.

    Hello,
    I am using QMainWindow::setWindowIcon() and QMainWindow::setWindowTitle() to set the icon and window title for my main window on my Qt Application. My application is portable to Windows, Linux, and Mac OS.

    My problem is that for Mac OS, I do not want the popup menu to appear on the title-bar when the use clicks on the proxy icon (I believe this is used primarily for NSDocument behavior for navigation and drag&drop). I was wondering how to suppress/disable the popup using the Qt API?

    NOTE: I have seen some approaches in Objective C in manipulating the NSWindow (overriding methods), but I would really like to confine my changes or specialization to the Qt API if possible.

    Thanks,
    David

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt5: Mac OS Issue, trying to suppress popup menu in QMainWindow titlebar/proxy ic

    You can check if QtMacExtras provides someting for that http://doc.qt.io/qt-5/qtmacextras-index.html

    Cheers,
    _

Similar Threads

  1. Replies: 5
    Last Post: 6th November 2012, 21:42
  2. Suppress window system menu
    By lumiss in forum Qt Programming
    Replies: 2
    Last Post: 19th August 2010, 09:46
  3. Replies: 0
    Last Post: 27th April 2010, 16:15
  4. Qt::Popup with titlebar
    By keyur259 in forum Qt Programming
    Replies: 22
    Last Post: 1st February 2010, 05:36
  5. Replies: 3
    Last Post: 17th May 2009, 21:17

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.