#include "bannerwidget.h"
#include <QPainter>
#include<QLabel>
#include<QComboBox>
#include<QPushButton>
#include<QDebug>
#include<QComboBox>
#include<QLineEdit>
#include <QCompleter>
#include<QTimer>
#include <QStringListModel>
#include <QListView>
#include<QListWidget>
#include <QDir>
typedef struct{
char name[64];
float score;
}perosn_t;
Q_DECLARE_METATYPE(perosn_t) // 注册结构体
bannerWidget::bannerWidget(QObject *parent)
{
QListWidget *m_ListWidget=new QListWidget(this);
m_ListWidget->setViewMode(QListWidget::IconMode);//显示模式
m_ListWidget->setIconSize(QSize(128, 128)
qt之QListwidget实现图片列表预览功能
最新推荐文章于 2025-05-27 14:26:46 发布