Results 1 to 14 of 14

Thread: Creating a Main Window Application

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creating a Main Window Application

    When I started on Qt, I found that I didn't need to stray any further than the Qt Assistant doco to learn how things work. You need to spend time reading the doco, it's VERY important. Work through the tutorials contained in the doco as well.

  2. #2
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Creating a Main Window Application

    Yes ... you are right.
    I was in "kind of a hurry" but i guess i definitely need some reading
    Thanks all .... "I'll be back"

  3. #3
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Creating a Main Window Application

    Ok then.

    I've been trough the The Direct Approach, The Single Inheritance Approach and The Multiple Inheritance Approach.

    Guess that each one as it's own application filed.

    The third one seems more comfortable to use, although it says that "...but does not conveniently support composition of multiple user interfaces".

    When i use Qt Creator to start a project based on QDialog class (for instance) it uses single inheritance ... right!

    Can i ask why? Is it because of what i said above, and this way the template will cover all situations?

    Hope this is not another stupid question

  4. #4
    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: Creating a Main Window Application

    Quote Originally Posted by gt.beta2 View Post
    Can i ask why?
    Because if they chose multiple inheritance, you could have asked the same question

    Probably the person who was writing this piece of code preferrs single over multiple inheritance.
    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.


Similar Threads

  1. minimizing main window
    By eric in forum Qt Programming
    Replies: 4
    Last Post: 28th November 2007, 16:54
  2. accessing my main application window widget
    By jayw710 in forum Newbie
    Replies: 8
    Last Post: 15th November 2007, 19:33
  3. Independant window in an application
    By titoo in forum Qt Programming
    Replies: 4
    Last Post: 28th February 2007, 11:07
  4. Replies: 3
    Last Post: 31st March 2006, 18:38
  5. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10: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
  •  
Qt is a trademark of The Qt Company.