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 show a window in same window not new page

how to show a window in same window not new page

Scheduled Pinned Locked Moved Solved General and Desktop
windowswindowshowکیوتکیوتی
3 Posts 3 Posters 1.5k Views
  • 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.
  • M Offline
    M Offline
    M4RZB4Ni
    wrote on 21 Apr 2016, 05:38 last edited by
    #1

    hi,
    i have 3 window and with below code second window show in a new page.
    i want to when i pressed a button for open new page,new page dont show in new window and show in same window.
    how i must do this?

    Secretary *dialog = new Secretary;
        dialog->showMaximized();
    

    thanks

    Thanks
    M4RZB4Ni

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 21 Apr 2016, 06:52 last edited by
      #2

      Then do not use QDialog.
      You can use QTabWidget.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 21 Apr 2016, 07:26 last edited by
        #3

        Hi
        QStackedwidget is also good for a design where you want a mainwindow
        with "pages"

        1 Reply Last reply
        0

        2/3

        21 Apr 2016, 06:52

        • Login

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