This works just fine for me:
#include <QtGui>
#include <Qt3Support>
class MyListView : public Q3ListView
{
public:
MyListView
(QWidget* parent
= 0) : Q3ListView
(parent
) {
setSelectionMode(Q3ListView::Extended);
// just some dummy items
addColumn("");
for (int i = 0; i < 5; ++i)
new Q3ListViewItem
(this,
QString::number(i
));
}
protected:
{
Q_UNUSED(event);
}
};
int main(int argc, char* argv[])
{
MyListView list;
list.show();
return a.exec();
}
#include <QtGui>
#include <Qt3Support>
class MyListView : public Q3ListView
{
public:
MyListView(QWidget* parent = 0) : Q3ListView(parent)
{
setSelectionMode(Q3ListView::Extended);
// just some dummy items
addColumn("");
for (int i = 0; i < 5; ++i)
new Q3ListViewItem(this, QString::number(i));
}
protected:
void contentsMouseMoveEvent(QMouseEvent* event)
{
Q_UNUSED(event);
}
};
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
MyListView list;
list.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks