Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question