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. onPushButton(Login Button), code redirects to mainWindow where my main UI will be.
Forum Updated to NodeBB v4.3 + New Features

onPushButton(Login Button), code redirects to mainWindow where my main UI will be.

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 395 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.
  • L Offline
    L Offline
    Laner107
    wrote on last edited by
    #1

    I am wondering how I can redirect my code into mainWindow.cpp where my main program will be located after the user clicks on the "login" button(onPushButtonClick). Currently when the user pushes the button it opens the second widget but it stays at the smaller size equivalent to the login window, so how can I redirect the code in mainWindow UI so after they click "login" it opens a new window at the correct size as my MainWindow.ui.

    alt text

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Do you mean to put the MainWindow into a stacked widget ?
      So instead of being a window, it goes inside ?

      It sounds like you want to show it as normal ( as a big window) so why put it inside the stacked window`?

      L 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Do you mean to put the MainWindow into a stacked widget ?
        So instead of being a window, it goes inside ?

        It sounds like you want to show it as normal ( as a big window) so why put it inside the stacked window`?

        L Offline
        L Offline
        Laner107
        wrote on last edited by
        #3

        @mrjj So inside the MainWindow there will be different pages they can access, wouldnt I need to do a stacked widget for this?

        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