Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor Anamika's Avatar
    Join Date
    Mar 2010
    Posts
    78
    Hi,


    I want to develop an app in Qt.
    Descriptions are:
    There will be 2 Screens in the App ie Screen A, B and Screen C.
    In Screen A there would be 2 buttons ie Button1 and Button2

    After clicking on Button1 app should invoke Screen B and same if user clicks on Button2 app should go to Screen C.



    Thanks and Regards
    Anamika

  2. #2
    Nokia Developer Champion somnathbanik's Avatar
    Join Date
    Dec 2008
    Posts
    2,272
    You can do this by using show/hide . Create windows using UI Designer and in each shot hide/show the window.
    This is the simplest way ,but you can also try by adding some effects, like sliding view etc.
    Last edited by somnathbanik; 2011-04-25 at 13:56. Reason: added

  3. #3
    Regular Contributor Anamika's Avatar
    Join Date
    Mar 2010
    Posts
    78
    Hi ,

    Am trying to do this hiding the main window.in my case when i click the button of the screen1 ,the screen 2 is being displayed by overlapping the screen 1.

    void MainWindow:n_pushButton_clicked()
    {
    MainWindow *mainwindow = new MainWindow(this);
    mainwindow->hide();
    SecondPage *secondpage= new SecondPage (this);
    secondpage->show();
    qDebug ("The string ");

    }

  4. #4
    Nokia Developer Champion somnathbanik's Avatar
    Join Date
    Dec 2008
    Posts
    2,272
    Quote Originally Posted by Anamika View Post
    Hi ,

    Am trying to do this hiding the main window.in my case when i click the button of the screen1 ,the screen 2 is being displayed by overlapping the screen 1.

    void MainWindow:n_pushButton_clicked()
    {
    MainWindow *mainwindow = new MainWindow(this);
    mainwindow->hide();
    SecondPage *secondpage= new SecondPage (this);
    secondpage->show();
    qDebug ("The string ");

    }
    What's wrong in this code? I would suggest you to initialize the windows once only in the constructor. and then keep playing with them

  5. #5
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    Quote Originally Posted by Anamika View Post
    Hi,


    I want to develop an app in Qt.
    Descriptions are:
    There will be 2 Screens in the App ie Screen A, B and Screen C.
    In Screen A there would be 2 buttons ie Button1 and Button2

    After clicking on Button1 app should invoke Screen B and same if user clicks on Button2 app should go to Screen C.



    Thanks and Regards
    Anamika
    Seems you had discussed the same issue in this thread. Why create a new thread?

  6. #6
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    Please don't create multiple thread for same question. Stick to your older thread.

Similar Threads

  1. How to create Multiple screen app in Qt for Symbian/Maemo?
    By narendar_discover in forum [Archived] Beginning Qt
    Replies: 7
    Last Post: 2011-04-25, 15:41
  2. How to create multiple files in Symbian
    By arungupta_2jan in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2008-04-14, 14:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved