Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoa Textured Window in Qt

Tags:

macos

cocoa

qt

I am using Qt to develop a cross platform application. I am trying to replicate the look and feel of the left two windows (A HUD window and a textured window) but so far I can't see how to get any kind of window except for the right most window. Does anybody have any idea how to replicate those type windows?

alt text http://th30z.netsons.org/wp-content/uploads/cocoa-windows-105.png

like image 598
DHamrick Avatar asked Nov 15 '22 14:11

DHamrick


1 Answers

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.

like image 123
Georg Schölly Avatar answered Dec 24 '22 00:12

Georg Schölly