Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3855698
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:48:57+00:00 2026-05-19T17:48:57+00:00

Our desktop application needs to run on Mac, Windows and Linux. That’s why we

  • 0

Our desktop application needs to run on Mac, Windows and Linux. That’s why we chose Qt. Before, we had three separate code bases for those 3 platforms.

In the old implementation, we drew our own “window caption” with Close, Minimize, Maximize buttons. It looks the same in all three platforms.

This time around, I am not so sure. I thought of letting Qt use whatever’s default caption and caption buttons for each platform, the rectangular “X”, “_” windows buttons, the round buttons on the left hand side on the mac, and whatever goes with Linux/Ubuntu etc.

Is this a wise decision? One of the things pushing me there is that i’d have to write the resize code for the window class I’m writing, the dragging code, the button work and everything else that comes with writing your own windows caption.

I noticed that if I use this, ” Qt::FramelessWindowHint” to remove the caption, i automatically lose my resizing grapple too. Is there a way around that? Also how would you go about implementing your own windows dragging code? (providing you knew the area you’d want to use as a “draggable caption”. Seems like I need to catch the button down on that region, enter a drag mode, track the mouse movements and move the windows according to the deltas. Similar for resize. I’ve done that in other platforms before, but I wanted to ask if Qt has a mechanism that allows me to do that “out of the box”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:48:58+00:00Added an answer on May 19, 2026 at 5:48 pm

    I thought of letting QT use whatever’s default caption and caption buttons for each platform

    Please do that. As a Mac user, few things are more confusing than “universal” interfaces that are supposed to look the same everywhere. The Windows style interface is confusing. The Mac Style interface is what I’m used to and what I want.

    If you have to write (and maintain and support) less code, that’s even better.

    Just go with “native” as much as possible. Write as little code as possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have built an desktop(windows) application that needs SQL Server to store the data.
Our Mac desktop application embeds WebView component from WebKit framework. Inside WebView we host
We have a Windows Java desktop application that creates some configuration files at %APPDATA%
In our desktop application, we have implemented a simple search engine using an inverted
We're developing a large desktop application using Windows Presentation Foundation. Currently, the application is
Greetings, we are currently trying to integrate BIRT in our desktop standalone application, using
We are writing a HTTP based desktop application whose client runs from outside our
I'm building an Android application (as an Eclipse project) that needs to access a
We need to implement a Java desktop application that allows us (initially) to create
Our database is part of a (specialized) desktop application. The primary goal is to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.