S
S
soja2018-12-08 20:36:47
Python
soja, 2018-12-08 20:36:47

What is this piece for?

write in python. I found a part of the code in c ++ (rather even qt)
the functionality is not very clear, therefore, if it's not difficult, I ask for help in translating into python

#ifndef WIDGET_H
#define WIDGET_H
 
#include <QWidget>
#include <QStandardItemModel>
#include <QMediaPlayer>
#include <QMediaPlaylist>
 
namespace Ui {
class Widget;
}
 
class Widget : public QWidget
{
    Q_OBJECT
 
public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
 
private slots:
    void on_btn_add_clicked();            
private:
    Ui::Widget *ui;
    QStandardItemModel  *m_playListModel;   
    QMediaPlayer        *m_player;          
    QMediaPlaylist      *m_playlist;       
};
 
#endif // WIDGET_H

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-12-08
@NeiroNx

This is a description of the object of some Widget. It has player and playlist objects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question