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 <QFrame>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QListWidget>
|
||||||
|
#include <QHBoxLayout>
|
||||||
|
|
||||||
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
|
@ -24,14 +26,14 @@ Player::Player(){
|
||||||
this->sender_laden();
|
this->sender_laden();
|
||||||
this->sender_ausgeben();
|
this->sender_ausgeben();
|
||||||
|
|
||||||
QPushButton *button;
|
QWidget *window = new QWidget;
|
||||||
QFrame *videoWidget;
|
QListWidget *list = new QListWidget();
|
||||||
|
for(int x=0;x<this->Sender;x++){
|
||||||
videoWidget = new QFrame;
|
list->addItem(this->Name[x]);
|
||||||
button = new QPushButton("Hallo");
|
}
|
||||||
|
QHBoxLayout *layout = new QHBoxLayout(window);
|
||||||
videoWidget->show();
|
layout->addWidget(list);
|
||||||
button->show();
|
window->show();
|
||||||
|
|
||||||
//this->play();
|
//this->play();
|
||||||
//this->play();
|
//this->play();
|
||||||
|
@ -119,7 +121,7 @@ int Player::play(void){
|
||||||
libvlc_media_release (m);
|
libvlc_media_release (m);
|
||||||
|
|
||||||
#if defined(Q_OS_WIN) // Windows
|
#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
|
#elif defined(Q_OS_MAC) // Mac
|
||||||
libvlc_media_player_set_nsobject(mp, (void *)videoWidget->winId());
|
libvlc_media_player_set_nsobject(mp, (void *)videoWidget->winId());
|
||||||
#else //Linux
|
#else //Linux
|
||||||
|
|
|
@ -12,3 +12,8 @@ DEFINES += CURL_STATICLIB VLC_STATICLIB
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
player.h
|
player.h
|
||||||
|
|
||||||
|
DISTFILES +=
|
||||||
|
|
||||||
|
FORMS += \
|
||||||
|
gui.ui
|
||||||
|
|
Loading…
Add table
Reference in a new issue