Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to close first windows , and open different window but in the same application (like Skype)
Forum Updated to NodeBB v4.3 + New Features

How to close first windows , and open different window but in the same application (like Skype)

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    Hello all
    Until now I was developing Qt MainWindow and always stay in this window , changing the content with QStackedWidget
    But now I need to do something like to skype , the flow is
    user open first window the login window after successful login , the window closes
    And new different window opens with the user friends , now maybe it’s the same first window
    That changed its look totally .. I don’t know.
    How I manage this in Qt ?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

      Using event loop. Use exec() for different windows. :)

      Chuck

      1 Reply Last reply
      0
      • U Offline
        U Offline
        umen242
        wrote on last edited by
        #3

        is there some example in the examples to do it right ?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on last edited by
          #4

          Just close the window and open a new one? What's the problem with that?

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0
          • A Offline
            A Offline
            alexander
            wrote on last edited by
            #5

            And don't forget to set quitOnLastWindowClosed as false.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved