Results 1 to 5 of 5

Thread: A multi-windowed application with Qt

  1. #1
    Join Date
    Feb 2010
    Posts
    61
    Thanks
    18
    Qt products
    Qt4
    Platforms
    MacOS X

    Default A multi-windowed application with Qt

    Hi,

    I would like to develop a multi-windowed application using Qt (like adobe illustrator, photoshop, or pixelmator...), but I don't know how to proceed.

    Usually for a standard application one just needs to create a QMainWindow and then to add QWidgets in this main window. However to my understanding this is not the same in a multi-windowed application since there are multiple windows at the same time.

    So I have two questions:

    1) Am I right ?
    2) Are there specific widgets for multi-windowed applications ?
    Last edited by ouekah; 13th April 2010 at 11:06. Reason: updated contents

  2. #2
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: A multi-windowed application with Qt

    I'm not sure what you are trying to achieve.

    Look at: http://doc.trolltech.com/latest/mainwindows-mdi.html

    It has a TabbedViewMode too: QMdiArea.setViewMode(QMdiArea::TabbedView);

    Johannes

  3. #3
    Join Date
    Feb 2010
    Posts
    61
    Thanks
    18
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: A multi-windowed application with Qt

    Thanks for your help ! This is almost what I'm looking for. But if I refer to your example, I would like the "MDI" window to not be visible. This would give the impression to the user that "main.cpp" and "document1.txt" are two independent windows. Another example of what I'm looking for is adobe photoshop where the window containing the picture and another window containing the tools are separated and visibly not contained in any main window.

    Of course there should be a main layout in which these windows are contained. However I would like this layout to be invisible.

    Is there a way to do that ?

  4. #4
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: A multi-windowed application with Qt

    Have a look at Qt designer. Choose Settings->Preferences->User Interface Mode->Multiple Top Level Windows.

    I'm not sure how they have implemented this, but you can have a look in the sources yourself.

  5. #5
    Join Date
    Oct 2009
    Posts
    151
    Thanks
    6
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: A multi-windowed application with Qt

    Don't you just create a parentless window / dialogue / widget to achieve this effect?

Similar Threads

  1. multi layer application
    By gpuntoni in forum Newbie
    Replies: 2
    Last Post: 11th January 2010, 17:30
  2. Multi Threaded Client Server application
    By live_07 in forum Qt Programming
    Replies: 0
    Last Post: 27th August 2009, 16:32
  3. Application 3-tiers (multi layers)
    By estanisgeyer in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2009, 17:28
  4. Multi Window Application in QT/C++
    By pshah.mumbai in forum Newbie
    Replies: 8
    Last Post: 8th July 2008, 17:21
  5. creating an application that does not appear to be windowed
    By sternocera in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 9th September 2007, 18:20

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.