Skip to content

Spr-Aachen/QEasyWidgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QEasyWidgets

A modern Qt widget library that provides enhanced components with theme support, animations, and a clean API.

PyPI 

简体中文 | English

Title


Python

Deployment

  • pip
    pip install QEasyWidgets -i https://pypi.org/simple/

C++

Requirements

  • Qt 6.x or Qt 5.15+
  • C++17 compatible compiler
  • qmake or CMake

Build Command

  • Using qmake
cd QEasyWidgets
qmake QEasyWidgets.pro
make          # Linux/macOS
nmake         # Windows (MSVC)
mingw32-make  # Windows (MinGW)
  • Using CMake
cd QEasyWidgets
mkdir build && cd build
cmake ..
cmake --build .

Build Output

The library will be built as a static library:

  • Debug: qeasywidgetsd.lib (Windows) or libqeasywidgets.a (Unix)
  • Release: qeasywidgets.lib (Windows) or libqeasywidgets.a (Unix)

Usage

  • Basic Example
#include <QApplication>

#include "QEasyWidgets.h"
#include "Components/Button.h"
#include "Windows/Window.h"

int main(int argc, char *argv[]) {
    QApplication app(argc, argv);
    QEWIns.setTheme(LIGHT); // Initialize QEasyWidgets
    WindowBase window; // Create a window
    PrimaryButton *button = new PrimaryButton("Click Me", &window); // Create a button
    button->setIcon(IconBase::Play);
    window.setCentralWidget(button);
    window.show();
    return app.exec();
}

Cases

Here are some projects based on QEasyWidgets:

Reference

About

A simple Qt widget library, provides both c++ and python version

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published