You are not logged in.

1

Tuesday, April 3rd 2012, 11:25pm

Q3ListView expand arrows incorrect on Mac in Qt 4.7/4.8

The expand/collapse arrows for Q3ListView look wrong on Mac OS X. See attached Windows and Mac screenshots.

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:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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();
}


Surely I can't be the only person using Q3ListView on Mac? I have searched, but can't find an answer. Any ideas?
AndyB has attached the following files:

Similar threads

Used tags

mac, Q3ListView