Results 1 to 2 of 2

Thread: Mainwindow layout change

  1. #1
    Join Date
    Apr 2011
    Posts
    25
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Mainwindow layout change

    hello friends

    Actually i face a problem while going form one Mainwindow to another Mainwindow..
    suppose i have mainwindow name Mainwindow1 and another mainwindow name Mainwindow2...now on the pushbutton of Mainwindow1 when i want to go to Mainwindow2 then it works but the layout of the mainwindow changes..its size decreses..

    the code i have wrritten in pushbutton of Mainwindow is..

    Qt Code:
    1. void MainWindow1::on_Clicked_pushButton()
    2. {
    3. MainWindow2 *m=new Mainwindow();
    4. m.showFullscreen();
    5. }
    To copy to clipboard, switch view to plain text mode 

    but when i perform same task by using diaglog its works fine..so whats the problem..if anyone please suggest..

    with regards
    Anshuman

  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: Mainwindow layout change

    This question and the one in http://www.qtcentre.org/threads/4101...-from-a-Dialog are almost identical. Are you the same person as http://www.qtcentre.org/members/23019-ranjit.kadam?

Similar Threads

  1. DockWidgetArea change and layout direction change
    By mstegehu in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2012, 21:24
  2. Replies: 2
    Last Post: 27th April 2011, 08:51
  3. Mainwindow layout problem with QDockWidget.
    By pastispast in forum Qt Programming
    Replies: 3
    Last Post: 13th January 2011, 06:04
  4. mainwindow layout vs widget layout
    By fatecasino in forum Newbie
    Replies: 2
    Last Post: 14th December 2010, 14:45
  5. Replies: 5
    Last Post: 10th April 2008, 09:52

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.