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. Can mainwindow be the password input window ? what problems will it have?
Forum Updated to NodeBB v4.3 + New Features

Can mainwindow be the password input window ? what problems will it have?

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

    i am using mainwindow to be the password input window, when login success, mainwindow hide, shows another window.
    I wonder if this kind of design will bring some problems in the furture or not. Can anyone help, thanks.

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

      Hi and welcome to the forums
      That should not be an issue using a main window for login even normally a QDialog class
      would been used. However, since you do not seems to need the modal feature of QDialog, then
      using a main window should be perfectly fine.

      1 Reply Last reply
      3
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        As @mrjj wrote, it should not get you any problem. However, the question would rather be why use a QMainWindow for such a task ? It's not really the correct tool.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        3

        • Login

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