Results 1 to 20 of 21

Thread: Problem showing the right thing.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Problem showing the right thing.

    Why don't you just populate the list you have instead of creating a new one?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Feb 2011
    Location
    Latvia
    Posts
    139
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    24
    Thanked 6 Times in 6 Posts

    Default Re: Problem showing the right thing.

    That was the first thing i tried. Problem is - i cannot call the mexthod completeList from Download_xml, without an object. And I have no idea how to call this method for the list that has already been created... Can u help me with code?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Problem showing the right thing.

    Just return a list of QListWidgetItem objects and then put them into the list when you have access to the list.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    18
    Thanked 68 Times in 66 Posts

    Default Re: Problem showing the right thing.

    what about something like this (untested):

    Qt Code:
    1. void function()
    2. {
    3.  
    4. QVector<Movie*> vec = ParseXml("http://www.forumcinemas.lv/rss/xml/movies/");
    5. QListWidget* listWidget = new QListWidget();
    6. FillListWidget(listWidget, vec);
    7.  
    8. listWidget->show();
    9. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. KDChart. What do you thing about?
    By Nadia in forum Qt-based Software
    Replies: 1
    Last Post: 15th February 2011, 01:55
  2. showing icons - setPixmap problem
    By Tomasz in forum Newbie
    Replies: 4
    Last Post: 18th November 2010, 17:37
  3. Problem showing QTableView
    By weaver4 in forum Qt Programming
    Replies: 6
    Last Post: 23rd November 2009, 13:42
  4. Showing QMainWindow without showing a child QWidget
    By discostu in forum Qt Programming
    Replies: 3
    Last Post: 4th March 2007, 09:03
  5. Problem showing raw images
    By wkit23 in forum Qt Programming
    Replies: 5
    Last Post: 8th September 2006, 13:33

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.