Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [moved] how to display window(Window A), when clicked on a button of another window(Window B)

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

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 2.1k Views
  • 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 Offline
    A Offline
    aurora
    wrote on last edited by
    #1

    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
    0
    • R Offline
      R Offline
      rokemoon
      wrote on last edited by
      #2

      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
      0
      • N Offline
        N Offline
        nesaver
        wrote on last edited by
        #3

        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
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rokemoon
            wrote on last edited by
            #5

            [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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved