Results 1 to 2 of 2

Thread: insert path in listwidget

  1. #1
    Join Date
    Jan 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Exclamation insert path in listwidget

    hi. how can i insert a path in a list widget?

    here's the scene..i will insert a path of a .txt file in the code then the listwidget will display its content..can someone help me?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: insert path in listwidget

    There is no magic bullet readAndDisplayMyArbitraryData() method.

    Open and read the file then do whatever you like with the content:
    QFile and QTextStream
    QListWidget might be the sort of display widget you were referring to. You might also look at QPlainTextEdit.

Similar Threads

  1. Replies: 8
    Last Post: 17th October 2009, 08:10
  2. QValidator and ListWidget
    By csvivek in forum Qt Programming
    Replies: 4
    Last Post: 9th July 2008, 19:19
  3. listWidget resize
    By buckadl in forum Qt Tools
    Replies: 3
    Last Post: 12th June 2007, 20:56

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.