I think a QMacNativeWidget will allow you do do what you want. Although, if you're writing this only on OS X it might be better to just make it a Cocoa app.
+1
A:
Amuck
2009-09-11 21:30:49
Yes, that's why I suggested just making a Cocoa app.
Amuck
2009-09-11 21:46:03
It is not a mac only application it is cross platform. But I want some of the dialog boxes to have a mac look and feel using the HUD window. I'll use regular dialog boxes for the windows platform.
DHamrick
2009-09-11 22:00:17
+2
A:
Have a look at Transmission. They have a platform independent background process and write the interface in native libraries for every platform. That's how they ensure a good looking application on all 3 platforms.
If you don't want to do the extra work there are some things provided by Qt:
QMainWindow::setUnifiedTitleAndToolBarOnMac(true)
QWidget::setAttribute(Qt::WA_MacBrushedMetal, true
)- Use
QMacCocoaViewContainer
to encapsulate a unified window, but you have to use it with Objective-C. This would make it much harder to maintain a cross-platform application.
The easiest way would probably be to go and hack the Qt source.
Georg
2009-10-01 07:51:06
A:
Textured/HUD windows aren't possible in a cross-platform way as they are OS X-only.
The only solution that I can think of is to switch to Cocoa - or abandon the idea of HUD/Textured windows altogether and focus on making something that works on all platforms.
Scavenger
2009-10-01 10:31:07