The expand/collapse arrows for Q3ListView look wrong on Mac OS X. See attached Windows and Mac screenshots.
listview_windows.png
listview_mac.png
In the Mac screenshot the expand/collapse arrows are partly obscured by the Q3ListViewItems. It looks quite wrong. The problem also exists in Qt 4.7, but not in Qt 4.2 (I haven't tried releases in between).
Here is the code to replicate the problem:
#include <QApplication>
#include <Q3ListView>
int
main( int argc, char* argv[] )
{
Q3ListView w;
w.setRootIsDecorated( true );
w.addColumn( "col1" );
w.show();
Q3ListViewItem* item1 = new Q3ListViewItem( &w, "item1" );
Q3ListViewItem* item2 = new Q3ListViewItem( item1, "item2" );
Q3ListViewItem* item3 = new Q3ListViewItem( item2, "item3" );
QObject::connect( qApp,
SIGNAL( lastWindowClosed
() ),
qApp,
SLOT( quit
() ) );
return app.exec();
}
#include <QApplication>
#include <Q3ListView>
int
main( int argc, char* argv[] )
{
QApplication app( argc, argv );
Q3ListView w;
w.setRootIsDecorated( true );
w.addColumn( "col1" );
w.show();
Q3ListViewItem* item1 = new Q3ListViewItem( &w, "item1" );
Q3ListViewItem* item2 = new Q3ListViewItem( item1, "item2" );
Q3ListViewItem* item3 = new Q3ListViewItem( item2, "item3" );
QObject::connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( quit() ) );
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Surely I can't be the only person using Q3ListView on Mac? I have searched, but can't find an answer. Any ideas?
Bookmarks