Results 1 to 2 of 2

Thread: QWidgetList

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QWidgetList

    Hi,

    I have a code in Qt3.2 like this

    QWidgetList wl;
    QWidget *w;
    wl = m_pWorkspace->windowList();
    for (w = wl.first(); w != 0; w = wl.next())
    delete w;

    How can I conver it into QT4.3.
    Please help me.....

  2. #2
    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: QWidgetList

    Qt Code:
    1. qDeleteAll(m_pWorkspace->windowList());
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    sabeesh (28th September 2007)

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.