Results 1 to 2 of 2

Thread: How to develop an Application with multiple screens

  1. #1
    Join Date
    Jun 2011
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to develop an Application with multiple screens

    Hi guys, I'm fairly new to Qt.
    Most of the example applications I have seen have stuff happening inside one screen.
    One of things I'm trying to learn is to write an Application that has multiple screens. For example, it could start with a Splash screen, then followed by the Home screen and few others.
    I already figured out the Splash screen with QSplashscreen.
    Also, I could use QStackedWidgets to display different "Pages" using this tutorial : http://www.developer.nokia.com/Commu...t_and_QToolbar
    Is there any other way to do this, lets say, for Game development ?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to develop an Application with multiple screens

    Not sure what you mean by "multiple screens".

    Do you mean multiple, independently moveable windows that all sit on the desktop? Yes, you can do that. Any QWidget created without a parent is by default a top-level widget with an implicit parent being the desktop widget.

    Do you mean multiple, independently moveable windows that all sit within an application frame that has menus and toolbars, etc? You can do that too, with QMainWindow having a QMdiArea as its central widget with QMdiSubWindow children.

    Do you mean multiple windowns, only one of which is "on top"? You can do that with QTabWidgetor QStackedWidget.

    Note that the tutorial you referenced has been deprecated (but only because the trolls want you to do it with Qt Quick and QML instead of widgets in C++).

    Is there any other way to do this, lets say, for Game development ?
    There are as many ways to do anything as there are programmers. Some ways are better, some are worse.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Qt Multiple custom screens and navigation
    By anish in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 28th August 2013, 14:13
  2. QML screens managed by cpp application
    By moti.lahiani in forum Qt Quick
    Replies: 0
    Last Post: 18th November 2011, 09:00
  3. Develop an Chat Application as use QT
    By phuong_90 in forum Qt Programming
    Replies: 2
    Last Post: 5th November 2011, 03:04
  4. Replies: 2
    Last Post: 17th March 2008, 23:49
  5. Replies: 0
    Last Post: 21st December 2006, 11:48

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.