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. Navigation from login form to main window.. any help?
Forum Updated to NodeBB v4.3 + New Features

Navigation from login form to main window.. any help?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.7k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    sandy.pareek
    wrote on last edited by
    #1

    hello,

    I want to navigate to main window from a login window after clicking a form.
    I am able to do it using Signal() and Slot() but for the particular form.
    To make it more clear, I wanna go from one window to another. A click should hide that window and show another (Already created form). I am able to hide that window using signal and slot as mentioned in reference docs, but I want an another form to open after hiding of previous form.

    any help over this?

    "my code, my life"

    1 Reply Last reply
    0
    • R Offline
      R Offline
      roahanramesh
      wrote on last edited by
      #2

      One way to achieve your task is to do the following because I followed this.

      1. From the main.cpp go directly to the form of your main application (lets say mainappwindow.cpp)
      2. Before the ui->setup(Ui) line, call your login window.
      3. Now your login window must be a QDialog with public members to retrieve your data. (A QDialog will execute first).

      4.Now back in your mainappwindow.cpp constructor retrieve the data and use it for further processing.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sandy.pareek
        wrote on last edited by
        #3

        thanks Rohan
        but can you explain 1st and 2nd step in more details?
        I am pretty new to Qt programming, It may be the reason I need some more explanation.
        Regards.

        "my code, my life"

        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