add QTVulkan example
This commit is contained in:
24
example/Vulkan/QtVulkanMainWindow.h
Normal file
24
example/Vulkan/QtVulkanMainWindow.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include<QWidget>
|
||||
#include<QPlainTextEdit>
|
||||
#include<QVBoxLayout>
|
||||
#include"QtVulkanWindow.h"
|
||||
|
||||
class MainWindow:public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
|
||||
QtVulkanWindow *m_window;
|
||||
QPlainTextEdit *m_info;
|
||||
|
||||
public slots:
|
||||
|
||||
void onVulkanInfoReceived(const QString &text);
|
||||
|
||||
public:
|
||||
|
||||
MainWindow(QtVulkanWindow *w);
|
||||
virtual ~MainWindow()=default;
|
||||
};//
|
Reference in New Issue
Block a user