0.4
This commit is contained in:
parent
0c2b03cecc
commit
32836f0750
3 changed files with 58 additions and 9 deletions
42
gui.ui
Normal file
42
gui.ui
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Form</class>
|
||||
<widget class="QWidget" name="Form">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>941</width>
|
||||
<height>625</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>290</x>
|
||||
<y>60</y>
|
||||
<width>75</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>PushButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QListWidget" name="listWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>120</y>
|
||||
<width>256</width>
|
||||
<height>192</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
20
player.cpp
20
player.cpp
|
@ -13,6 +13,8 @@
|
|||
#include <QFrame>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QListWidget>
|
||||
#include <QHBoxLayout>
|
||||
|
||||
|
||||
#include "player.h"
|
||||
|
@ -24,14 +26,14 @@ Player::Player(){
|
|||
this->sender_laden();
|
||||
this->sender_ausgeben();
|
||||
|
||||
QPushButton *button;
|
||||
QFrame *videoWidget;
|
||||
|
||||
videoWidget = new QFrame;
|
||||
button = new QPushButton("Hallo");
|
||||
|
||||
videoWidget->show();
|
||||
button->show();
|
||||
QWidget *window = new QWidget;
|
||||
QListWidget *list = new QListWidget();
|
||||
for(int x=0;x<this->Sender;x++){
|
||||
list->addItem(this->Name[x]);
|
||||
}
|
||||
QHBoxLayout *layout = new QHBoxLayout(window);
|
||||
layout->addWidget(list);
|
||||
window->show();
|
||||
|
||||
//this->play();
|
||||
//this->play();
|
||||
|
@ -119,7 +121,7 @@ int Player::play(void){
|
|||
libvlc_media_release (m);
|
||||
|
||||
#if defined(Q_OS_WIN) // Windows
|
||||
libvlc_media_player_set_hwnd(mp, (void *)videoWidget->winId());
|
||||
// libvlc_media_player_set_hwnd(mp, (void *)videoWidget->winId());
|
||||
#elif defined(Q_OS_MAC) // Mac
|
||||
libvlc_media_player_set_nsobject(mp, (void *)videoWidget->winId());
|
||||
#else //Linux
|
||||
|
|
|
@ -12,3 +12,8 @@ DEFINES += CURL_STATICLIB VLC_STATICLIB
|
|||
|
||||
HEADERS += \
|
||||
player.h
|
||||
|
||||
DISTFILES +=
|
||||
|
||||
FORMS += \
|
||||
gui.ui
|
||||
|
|
Loading…
Add table
Reference in a new issue