Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [moved] how to display window(Window A), when clicked on a button of another window(Window B)

    General and Desktop
    4
    5
    1969
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aurora last edited by

      I hav created two windows, window_A and window_B
      I hav button "SHOW" on window_B, when i click on that i want to display window_A.
      How can i do that?
      I hav files
      window_A.h
      window_B.h
      window_A.cpp
      window_B.cpp
      main.cpp

      where should i write that code?

      1 Reply Last reply Reply Quote 0
      • R
        rokemoon last edited by

        For example you can do like this:
        @
        window_B::window_B()
        {
        ////
        connect(youPushButton, SIGNAL(clicked()), window_A, SLOT(show()));
        ////
        }
        @
        And why do you post this in Qt Quick, I think it's Genereal and Desktop?

        1 Reply Last reply Reply Quote 0
        • N
          nesaver last edited by

          You should use Page in qml at:
          http://harmattan-dev.nokia.com/docs/library/html/qt-components/qt-components-meego-page.html

          1 Reply Last reply Reply Quote 0
          • A
            andre last edited by

            Moved to General & Desktop (from Quick), as I think it belongs here.

            1 Reply Last reply Reply Quote 0
            • R
              rokemoon last edited by

              [quote author="Andre" date="1320734170"]Moved to General & Desktop (from Quick), as I think it belongs here.[/quote]
              Thank's Andre.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post