QDialog
ベースの吹き出し付きポップアップ
環境例
項目 | 内容 |
---|---|
アプリケーション名 | test |
ライブラリフォルダ | libs |
# git submodule add git@github.com:sharkpp/qtauthwith.git libs/qtauthwith
# git submodule update
アプリケーションの .pro
を変更する。
変更例
+ # You can also select to disable deprecated APIs only up to a certain version of Qt.
+ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
+
+ include(./libs/qtauthwith/sources/authwith.pri)
+
+ SOURCES += \
+ main.cpp \
+ mainwindow.cpp \
./libs/qtauthwith/authwith.pro
を Qt Creator
で開きビルドする。
アプリケーションの .pro
を変更する。
変更例
+ # You can also select to disable deprecated APIs only up to a certain version of Qt.
+ #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
+
+ AUTHWITH_USE_STATIC_LIB=1
+ include(./libs/qtauthwith/sources/authwith.pri)
+
+ SOURCES += \
+ main.cpp \
+ mainwindow.cpp \
変更例
#include <QApplication>
TaskTrayPopup::TaskTrayPopup(QWidget *parent)
- : QDialog(parent)
+ : AuthWith(parent)
, ui(new Ui::TaskTrayPopup)
{
ui->setupUi(this);
変更例
#ifndef TASKTRAYPOPUP_H
#define TASKTRAYPOPUP_H
+ #include "authwith.h"
namespace Ui {
class TaskTrayPopup;
}
class TaskTrayPopup
- : public QDialog
{
Q_OBJECT
完了
定義 | 概要 |
---|---|
AythWith::AythWith(QWidget *parent = 0) |
コンストラクタ |
- 切り欠きの位置(右寄り/☑️**/左寄り/なし)
- 吹き出しの角丸
- 非アクティブ化処理(まだ一部おかしい)
© 2018 sharkpp
このアプリケーションは MIT ライセンス の下で提供されています。