Results 1 to 3 of 3

Thread: Multiple source files per ui

  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Multiple source files per ui

    I have a QTabWidget on a form with quite a few widgets in each tab. It would be much more readable if I could have a seperate source (.cpp/.h) file for each tab rather than being all in the one file. Is this possible whilst still using Designer?

    (Ie, I know I can do it in code by creating the widgets myself, but I would prefer to do the gui for each tab in Designer, as its easier to maintain)

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Multiple source files per ui

    you can make every widget in designer and then just add them in code to proper tabs
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Multiple source files per ui

    doesn't that mean though that they'll be in different ui files? I want all the tabs to be in a single ui file, but the code behind to be in seperate cpp files.

Similar Threads

  1. Avoiding stepping into qt source files while debugging
    By piotr.dobrogost in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2009, 14:48
  2. qmake using source files not in .pro file
    By Asperamanca in forum Newbie
    Replies: 12
    Last Post: 9th July 2009, 15:29
  3. Open multiple files with one program instance
    By Ginsengelf in forum Qt Programming
    Replies: 6
    Last Post: 16th March 2009, 14:08
  4. Access UI Components from different source files
    By cevou in forum Qt Programming
    Replies: 3
    Last Post: 13th February 2009, 23:44
  5. Multiple project files in a single directory
    By jogeshwarakundi in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 17th July 2008, 07:03

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.