Results 1 to 2 of 2

Thread: Two UI files, one header/CPP - is it possible?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Two UI files, one header/CPP - is it possible?

    You have the whole expressiveness of C++ at hand, including inheritance. Have a base class defining the logic of the application and two subclasses providing two version of the user interface. Then you will be able to decide which UI to show by instantiating one or the other.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    LostSoul (24th April 2015)

Similar Threads

  1. QMake Precompiled header with both C and C++ files
    By Ermoghen in forum Qt Tools
    Replies: 0
    Last Post: 22nd April 2015, 14:49
  2. Header Files
    By Maluko_Da_Tola in forum Newbie
    Replies: 1
    Last Post: 2nd October 2010, 12:04
  3. Replies: 2
    Last Post: 30th September 2010, 12:26
  4. header files problems
    By dognzhe in forum General Programming
    Replies: 1
    Last Post: 18th May 2009, 08:00
  5. header files not getting included
    By nimmyj in forum Installation and Deployment
    Replies: 1
    Last Post: 19th December 2006, 06:18

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.