Results 1 to 5 of 5

Thread: How to decide whether to make a separate class for widgets of a window?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to decide whether to make a separate class for widgets of a window?

    E.g. you have custom widgets A, B, C, and D which should have connections. Then make a QWidget W and in its constructor initiate ABCD, arrange them using e.g. QGridLayout and connect the signals and slots between ABCD.

    This way you only have to initiate W whenever you need ABCD inside your application.

  2. The following user says thank you to Lykurg for this useful post:

    TheIndependentAquarius (15th February 2012)

Similar Threads

  1. Put in a separate thread a method of a class
    By franco.amato in forum Qt Programming
    Replies: 0
    Last Post: 19th March 2010, 23:45
  2. separate class using an interface
    By qt_gotcha in forum Newbie
    Replies: 7
    Last Post: 3rd March 2010, 21:54
  3. Replies: 1
    Last Post: 7th December 2009, 07:26
  4. Accesing widgets from separate thread
    By msmihai in forum Qt Programming
    Replies: 2
    Last Post: 8th December 2008, 11:48
  5. separate Qt class diagram
    By juanrb in forum Qt Programming
    Replies: 2
    Last Post: 14th April 2008, 19:55

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.