Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Panels on OS X could not work as native in some cases
Qt 6.12 LTS is out! See what's new in the release blog

Qt Panels on OS X could not work as native in some cases

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 436 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Alexander SoplyakovA Offline
    Alexander SoplyakovA Offline
    Alexander Soplyakov
    wrote on last edited by
    #1

    I have an example of code that shows the problem.
    I create 1 window and 1 panel. I create panel that does not steal activation state from the general window when I click to this one. How can I do the same on Qt? Is it possible?

    NSRect rect = NSMakeRect(0, 0, 640, 480);
    NSWindow* pWindow = [[NSWindow alloc] initWithContentRect: rect
                                                                                 styleMask: NSTitledWindowMask | NSResizableWindowMask
                                                                                 backing: NSBackingStoreRetained
                                                                                 defer: false];
    NSPanel* pPanel = [[NSPanelalloc] initWithContentRect: rect
                                                                                 styleMask: NSTitledWindowMask | NSResizableWindowMask | NSClosableWindowMask | NSHUDWindowMask
                                                                                 backing: NSBackingStoreRetained
                                                                                 defer: false];
    [pWindow display];
    [pPanel display];
    [pPanel setBecomesKeyOnlyIfNeeded: YES];
    [pWindow makeKeyAndOrderFront: pWindow];
    [pPanel orderFront: pPanel];
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved