From d02f3b0bc32f711bf33a7fd288185963e9e96189 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周二, 05 12月 2023 16:21:28 +0800 Subject: [PATCH] add isFixedSize implementation --- examples/mainwindow/mainwindow.cpp | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp index 65c4b12..7246fdd 100644 --- a/examples/mainwindow/mainwindow.cpp +++ b/examples/mainwindow/mainwindow.cpp @@ -54,11 +54,17 @@ return menuBar; }(); + static const auto buttonStyleSheet = QLatin1String{ "QPushButton{color:black;};QPushButton:hover{background-color:black;color:white;}" }; + auto iconButton = new QPushButton("I"); + iconButton->setStyleSheet(buttonStyleSheet); auto minButton = new QPushButton("鈥�"); + minButton->setStyleSheet(buttonStyleSheet); auto maxButton = new QPushButton("馃棖"); + maxButton->setStyleSheet(buttonStyleSheet); maxButton->setCheckable(true); auto closeButton = new QPushButton("鉁�"); + closeButton->setStyleSheet(buttonStyleSheet); auto windowBar = new QWK::WindowBar(); windowBar->setIconButton(iconButton); -- Gitblit v1.9.1