Results 1 to 5 of 5

Thread: Maximum number of controls in QWidget

  1. #1
    Join Date
    Sep 2008
    Location
    Chennai
    Posts
    36
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3
    Platforms
    Unix/X11

    Question Maximum number of controls in QWidget

    Is there any limit in number for adding controls (LineEdits, TextEdits , PushButtons ..etc) to a single QWidget form ?

    Thanks in advance .......

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Maximum number of controls in QWidget

    I never read anything about limitations of the number of widgets in a widget.
    The only limitation I know is your RAM. And you need a lot of widgets to completely fill your memory .
    So if you are asking if 50 widgets may be too much, or 100 widgets, that is no problem.

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

    soumyadeep_pan (7th February 2009)

  4. #3
    Join Date
    Sep 2008
    Location
    Chennai
    Posts
    36
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Maximum number of controls in QWidget

    Thnx Boron for your reply .....

    But I have heard some of my friends who are using VC++, that one single frame can contains maximum of 255 controls..... such I wondering, is there any limit like that ...... As I am going to add more than 350 controls in a single widget (Main window) which may contain multiple frames .......

  5. #4
    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: Maximum number of controls in QWidget

    Even if Qt has no such limitation, I'd rethink the GUI design. Perhaps it's time to take a look at Qt's item views or the graphics view framework.
    J-P Nurmi

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

    soumyadeep_pan (7th February 2009)

  7. #5
    Join Date
    Sep 2008
    Location
    Chennai
    Posts
    36
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Maximum number of controls in QWidget

    Thanks Boron and JPN for your useful post .....

    But I have an another issue, as I have created a huge number of same type controls, QT Designer will give different names for those controls automatically. Can I make those like an array. I can do the same thing by creating LineEdit (say for examples) array and copy those objects into that array and can use them sequentially, but is there any way to do this in designer by default ???? (It can reduce my code size)

    Thanks in advance ......

Similar Threads

  1. Maximum number of characters in width
    By ralphmerridew in forum Qt Programming
    Replies: 3
    Last Post: 27th May 2008, 01:55
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  3. How to disable maximum event in QWidget??
    By hesummar in forum Qt Programming
    Replies: 2
    Last Post: 28th October 2006, 13:21

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.