Results 1 to 20 of 21

Thread: QListWidget - inconsistency across operating systems?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Feb 2007
    Posts
    29
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    12

    Default Re: QListWidget styles?

    Ok, so the fault isn't in the code. Apparently...

    Strange indeed...

    This is the code I'm using:
    #include <QtGui>

    int main(int argc, char** argv) {
    QApplication app(argc, argv);
    QListWidget* Sidebox = new QListWidget;

    Sidebox->setWrapping(false); // <-- _false_
    Sidebox->setMovement(QListView::Static);

    new QListWidgetItem(QObject::tr("Test"), Sidebox);
    new QListWidgetItem(QObject::tr("Hello world"), Sidebox);

    Sidebox->show();
    return app.exec();
    }

    jpn says it works with his build of Qt. jpn is using Qt (open source) 4.2 on Linux (as I can see from his screenshot).
    I'm using Qt (open source) 4.2 on Windows (like it says to the right of my username). It doesn't work with my build.
    Last edited by scwizard; 19th February 2007 at 16:36.

Similar Threads

  1. Replies: 13
    Last Post: 15th December 2006, 11:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.