Skip to content

imitatehappiness/QtCustomTitleBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Custom Title Bar Template for C++ Qt

GitHub stars GitHub forks GitHub watchers GitHub followers

This repository contains a basic template for a custom title bar in a C++ Qt application. The custom title bar provides essential functionality, such as hiding, dragging, maximizing, and closing the window. You can use this template as a starting point in your real projects to create a more personalized and visually appealing title bar for your Qt applications.

Features

  • Custom Title Bar: Replace the default system title bar with a custom-designed one, giving your application a unique look and feel.
  • Draggable: Drag the window by clicking and holding the title bar area, providing the same behavior as the standard title bar.
  • Minimize/Maximize/Close: Add buttons to minimize, maximize (restore), and close the window, allowing users to interact with the application as expected.
  • Style Customization: Easily modify the appearance of the title bar by adjusting colors, fonts, and icons to match your application's theme.

Basic usage

#include "mainwindow.h"
#include "windowframe.h"

#include <QApplication>

int main(int argc, char *argv[]){
    QApplication a(argc, argv);

    WindowFrame w(nullptr, new MainWindow());
    w.show();
    return a.exec();
}

Example

About

🔲 Custom Title Bar Template for C++ Qt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published