Results 1 to 20 of 21

Thread: QListWidget - inconsistency across operating systems?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QListWidget styles?

    Qt Code:
    1. #include <QtGui>
    2.  
    3. int main(int argc, char** argv) {
    4. QApplication app(argc, argv);
    5.  
    6. QListWidget* Sidebox = new QListWidget;
    7.  
    8. Sidebox->setWrapping(false); // <-- _false_
    9. Sidebox->setMovement(QListView::Static);
    10.  
    11. new QListWidgetItem(QObject::tr("Test"), Sidebox);
    12. new QListWidgetItem(QObject::tr("Hello world"), Sidebox);
    13.  
    14. Sidebox->show();
    15. return app.exec();
    16. }
    To copy to clipboard, switch view to plain text mode 

    Edit: Btw, thanks Wysota for pointing it out!
    Last edited by jpn; 19th February 2007 at 15:59.
    J-P Nurmi

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.