×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    48

    QStringList data on a QWidget

    Hi

    How to display the QStringList data on a QWidget.

    I have follwing data in my QStringList object.
    Birthday
    Marriage
    Personal
    I want to display this data on the widget.

    Code Snippet for the same is below:
    The following code gets the folder list under c:\\Data\\Images\\Pictures.I want to display this list on a widget.

    QDir dir("c:\\Data\\Images\\Pictures");//
    dir.setFilter(QDir::AllDirs);
    QStringList list = dir.entryList();
    QStringList::Iterator it1 = list.begin();
    QMessageBox::information(NULL, "",*it1);
    while( it1 != list.end())
    {
    QMessageBox::information(NULL, "", *it1);
    ++it1;
    }

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: QStringList data on a QWidget

    What sort of QWidget? A new custom one? A text box of some sort, editable? A selection list or menu of some kind?

    Look at the list of widgets available in the QtGui module and see if any of them look like they might be suitable, then look at the API and see if you can work out how to add the strings from your list to the widget.

    Mark

  3. #3
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: QStringList data on a QWidget

    Hi,
    Can you please explain wht kind of the data you want to display? You can use either a lineedit or textedit or simply use some label and than setText using stringlist.

    Regards.
    Jajal Mehul

Similar Threads

  1. Why buffer the POST data on 6500? And response Out Of Memory Message!
    By sure0812 in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2009-05-26, 12:18
  2. Replies: 3
    Last Post: 2008-09-09, 04:53
  3. Replies: 1
    Last Post: 2007-04-17, 10:47
  4. Replies: 4
    Last Post: 2006-08-30, 10:15
  5. Unicode Song Title In NSM Ringtone
    By mcai7db3 in forum Smart Messaging
    Replies: 3
    Last Post: 2002-08-28, 06:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •