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. Pwd ctrl
Forum Updated to NodeBB v4.3 + New Features

Pwd ctrl

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.1k 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.
  • A Offline
    A Offline
    av2306
    wrote on last edited by
    #1

    Hi All,

    which is the best control to have password in Qt Gui? Is there any specific widget for password? that widget should not be accessed from hackers by iterating parent and child window handles.

    Thanks,
    av

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      It is "QLineEdit with its echo mode":http://qt-project.org/doc/qt-5/qlineedit.html#echoMode-prop
      I guess it is more your application which may create an information leak. The widget or the dialog with the widget can be deleted immediately after the input of the password. You can inherit the class and prepare to overwrite the password before deletion. However, the widget is not the only place where you have the password in memory. IMHO you need to worry more about this.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MuldeR
        wrote on last edited by
        #3

        At the point where the attacker has "infiltrated" the system and is now able to read your process' memory, you are doomed anyway. He could as well install a keylogger. Or modify the program to show the password as plain text...

        My OpenSource software at: http://muldersoft.com/

        Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

        Go visit the coop: http://youtu.be/Jay...

        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