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. Switch to next page after login
Forum Updated to NodeBB v4.3 + New Features

Switch to next page after login

Scheduled Pinned Locked Moved General and Desktop
qtsqlqstackedwidgetpage layoutdatabasenavigation
2 Posts 2 Posters 1.2k Views 2 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
    salahuddin
    wrote on last edited by
    #1

    Hi, I'm quite a newbie in Qt, and am just exploring the functionality in Qt. I'm currently working on a project where I have to use MySql to find the user and view some data from the database that relates to the corresponding user. I'm using QStackedWidgets for the first pages (welcome and log in) but after login is successful, I'm not sure how I shall code the rest to get the content from the database. Should I just add a new page to the QStackedWidget or should I create a new .cpp file and switch to the new file after successful log in. After the user has logged in, it will be shown some kind of graphs and tables that comes from the database.

    Hope anyone here can help me out of this.
    Thanks!

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

      Hi and welcome

      While using QStackedWidget for all pages / screens could work just fine,
      a more common design would/could be using
      QDialog for welcome and login and when closed -
      the main window for the graphs etc.

      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