Results 1 to 4 of 4

Thread: How to open new form in the same mainwindow on a pushbutton click?

  1. #1
    Join Date
    Jul 2012
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default How to open new form in the same mainwindow on a pushbutton click?

    Hello Everybody, I'm very new to qt I just installed qt in my ubuntu 12.04 and trying to make a project with only one window (mainwindow as) and many steps like clicking next to see another form and go to previous form. I got some code somewhere in web. But when I run that, on clicking a pushbutton say NextStep current window closes and a new window opens with the required form rahter than showing that form in current active window.. please try to give an example to understand easily.. thank you in advance..

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to open new form in the same mainwindow on a pushbutton click?

    Read the docs under QStackedWidget and QWizard

  3. #3
    Join Date
    Jul 2012
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: How to open new form in the same mainwindow on a pushbutton click?

    Thank you for your kind reply.. But in this case I'm using my own procedures to implement this project ( an Backup OS based on linux as my college project ) So I'm searching how to do it by dealing with mainwindows and normal widget form. I'll implement your suggestion too. But I want to gain knowledge on this because The examiner for whom I'm submitting this diploma project can ask the questions on this. So I need to explain the reason why I chosed this and show two kind of implementation to attract his attention

  4. #4
    Join Date
    Jul 2012
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: How to open new form in the same mainwindow on a pushbutton click?

    Thank god... did it with " setCentralWidget( 'Replacing widget variable' ) " function.. If anyone got help with this reply here.. :-)

Similar Threads

  1. Change the Pushbutton text from other form
    By vinithr in forum Newbie
    Replies: 1
    Last Post: 11th June 2012, 07:58
  2. How to hide from taskbar a form showed form mainwindow
    By tonnot in forum Qt Programming
    Replies: 1
    Last Post: 10th February 2011, 14:36
  3. twice execution of click on pushbutton?
    By rambo83 in forum Newbie
    Replies: 8
    Last Post: 10th November 2009, 12:21
  4. pushButton click event
    By aj2903 in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2009, 11:19
  5. Help me to load one form over another form PushButton
    By wagmare in forum Qt Programming
    Replies: 7
    Last Post: 26th November 2008, 16:11

Tags for this Thread

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.