Results 1 to 4 of 4

Thread: problem with QStackedwidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 140 Times in 132 Posts

    Default Re: problem with QStackedwidget

    What can I should do?
    First of all, show us your code so we can see what have you already tried.

  2. #2
    Join Date
    Apr 2010
    Posts
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: problem with QStackedwidget

    I developed my application using Qt Creator 1.3.1. I could include some files. In my opinion problem could be located in ui file, so I could show ui_myfile.h or myfile.ui.
    Wait for your question
    Paolo

  3. #3
    Join Date
    Apr 2010
    Posts
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: problem with QStackedwidget

    Solved! I set SetGeometry() property inside my code. See the code:
    void MiaQStackedWidget:n_pushButton_pressed()
    {
    ui->page_1->hide();
    ui->page_2->setGeometry(0,0,800,480);
    ui->page_2->show();
    }
    I tought Geometry was already set inside QtCreator, but it wasn't so. I tried and all my pages now are correctly sized as I like.
    I don't know if it's the best method, there're further ways to obtain same result, but I see It works and I'm ok.
    Paolo

Similar Threads

  1. QStackedLayout / QStackedWidget
    By morraine in forum Newbie
    Replies: 15
    Last Post: 12th July 2013, 10:16
  2. Help with QStackedWidget
    By onírico in forum Newbie
    Replies: 6
    Last Post: 12th November 2009, 17:34
  3. QStackedWidget layout problem
    By Banjo in forum Qt Programming
    Replies: 9
    Last Post: 15th May 2008, 01:15
  4. QStackedWidget question
    By hgedek in forum Qt Programming
    Replies: 3
    Last Post: 20th August 2007, 17:36
  5. QStackedWidget fill Postscript image And scroll problem
    By patrik08 in forum Qt Programming
    Replies: 11
    Last Post: 22nd April 2007, 10:30

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.