×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    May 2006
    Posts
    123

    Thumbs up Cant perform any action on Window

    Hi All,
    I created two windows,navigating from one window to other using menu action.But when I goes to next window in that I used menu and button to redraw label but no action taking place.Why? I used same manner I did it in first window.Do I need to add anything like AddtoStackL() in symbian for key handling.

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: Cant perform any action on Window

    Quote Originally Posted by sumanthgwn View Post
    Hi All,
    I created two windows,navigating from one window to other using menu action.But when I goes to next window in that I used menu and button to redraw label but no action taking place.Why? I used same manner I did it in first window.Do I need to add anything like AddtoStackL() in symbian for key handling.
    hi,
    Can you please give your code, so that it would be easy to debug the code.
    Regards
    Jajal Mehul

  3. #3
    Regular Contributor
    Join Date
    May 2006
    Posts
    123

    Thumbs up Re: Cant perform any action on Window

    Hi James,
    My code

    #include "window.h"
    #include <QAction>
    #include <QMenuBar>
    #include <QMenu>
    #include <QVBoxLayout>

    Window::Window(QWidget *parent)
    : QMainWindow(parent)
    {


    ui.setupUi(this);
    CreateMenu();
    QObject::connect(ui.pushButton,SIGNAL(Trigged()),this,SLOT(Draw()));
    }

    Window::~Window()
    {

    }

    void Window:raw()
    {
    //ui.label->setText("Draw");

    ui.label->setText("Draw");
    }

    void Window::CreateMenu()
    {
    QMenu *windowMenu = menuBar()->addMenu(tr("Options"));

    QAction *dummy = new QAction(tr("Dummy"),this);
    windowMenu->addAction(dummy);

    QAction *File = new QAction(tr("File"),this);
    connect(File,SIGNAL(Trigged()),this,SLOT(Draw()));
    windowMenu->addAction(File);

    QAction *Exit = new QAction(tr("Exit"),this);
    connect(Exit,SIGNAL(Trigged()),qApp,SLOT(quit()));
    windowMenu->addAction(Exit);

    }

    Iam calling this window from first window..

Similar Threads

  1. Need help on window server session
    By gigglie in forum Symbian
    Replies: 0
    Last Post: 2008-05-03, 09:57
  2. Perform an action upon launch of the application
    By hmleung in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-11-19, 17:45
  3. Problem Creating Window Using RWindow and putting More controls on it
    By er_gps212 in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-10-28, 06:22
  4. About window views
    By thodime_guru in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-06-17, 18:00
  5. Replies: 1
    Last Post: 2004-01-27, 03:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •