Results 1 to 4 of 4

Thread: List of Widgets

  1. #1
    Join Date
    Dec 2008
    Posts
    31
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default List of Widgets

    Hi folks,

    I have designed quite a few forms in Qt Designer, each of them having
    lot of widgets embedded in them.

    Now for the sake of my design document, i need to get a list
    of all the widgets
    (Labels, buttons, Stackwidgets, Frames) in my form.

    Is there any tool to do this or does designer give me an option to extract?

    Currently all the widgets are available in "ui_form.h", but is there
    any better way to get this?

  2. #2
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: List of Widgets

    findChildren() will get you all the widgets
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  3. #3
    Join Date
    Dec 2008
    Posts
    31
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: List of Widgets

    I dont want from a code prespective, i need a feature in Qt Designer...

  4. #4

    Default Re: List of Widgets

    Quote Originally Posted by linuxdev View Post
    I dont want from a code prespective, i need a feature in Qt Designer...
    Well...

    Im using Qt Creator 4.5 and there is a panel on the right side, just over the "Properties" box that lists all the objects on the UI with their respective classes.

    Try looking to it.

Similar Threads

  1. Mac OS X Top-Level Transparent Widgets
    By tinsuke in forum Qt Programming
    Replies: 0
    Last Post: 17th October 2008, 16:01
  2. Upper limit on number of widgets?
    By jdiewald in forum Qt Programming
    Replies: 1
    Last Post: 29th September 2008, 23:00
  3. Replies: 2
    Last Post: 16th May 2008, 14:39
  4. Replies: 1
    Last Post: 22nd October 2007, 02:04
  5. widgets behind hidden widgets not working
    By bpetty in forum Newbie
    Replies: 13
    Last Post: 7th September 2007, 20:23

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.