Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Borderless Window on Mac OS X
QtWS25 Last Chance

Borderless Window on Mac OS X

Scheduled Pinned Locked Moved General and Desktop
borderless windcustome chrome
2 Posts 1 Posters 2.6k 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.
  • S Offline
    S Offline
    shailesh83
    wrote on 13 May 2015, 08:15 last edited by
    #1

    Hello,
    As i am new to Qt 5.4 on Mac OS X.I have wondering how to achieve Borderless Window and customising Mac OS X Window with my Window.
    Code i used:
    setWindowFlags( Qt::FramelessWindowHint | Qt::CustomizeWindowHint);
    yeah it make my window customizable and hides "minimise","maximise","close" window.
    And i add my own customized "minimise","maximise","close" button.
    Also i used following code to achieve Mac functionality using following code:
    Minimise Window :

    window()->showMinimized();
    or
    window()->setWindowState(Qt::WindowMinimized);

    Maximize window:

    if(window()->windowState() == Qt::WindowMaximized)
    {
    window()->showNormal();
    }
    else
    {
    window()->showMaximized();
    }
    Quit Window:

    qApp->quit();

    Please can some one help me how to add minimise,maximise and close functionality in Mac OS X using Qt.As i think i need to write some code in objective C++.i tried that but its not compiling as well giving error for HIViewGetWindow undefined:

    ChangeWindowAttributes(HIViewGetWindow(HIViewRef(window()->winId())), kWindowSideTitlebarAttribute, 0);

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shailesh83
      wrote on 15 May 2015, 09:35 last edited by
      #2

      Hello All,

      Please can some one reply to this my post as i am stuck in making customise window in Mac OS X how Steam Launcher has achieved on Mac OS X.Also Blizzard Battle.net has not achieved on Mac OS X , they haven't customised a window like that.

      1 Reply Last reply
      0

      2/2

      15 May 2015, 09:35

      • Login

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