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. CheckBox to QInputDialog..?
Forum Update on Monday, May 27th 2025

CheckBox to QInputDialog..?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qinputdialogcheckboxdialog
2 Posts 2 Posters 1.7k Views
  • 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.
  • R Offline
    R Offline
    Rohith
    wrote on 2 Aug 2016, 07:18 last edited by
    #1

    Hi,

    i am using QInputDialog to receive password and now i have to show the password when ever the user want,is it possible to show the password when ever user checks the CheckBox as of Wifi tethering password in our mobiles.

    QString text = QInputDialog::getText(this, tr("Enter Password"),tr("<b>Enter Password <br> Password should be 8 charecters minimum</b>"), QLineEdit::Password,"", &ok);
    
    

    If it is possible please post a sample code

    Thanks in advance,
    Regards,
    Rohith.G

    R 1 Reply Last reply 2 Aug 2016, 07:23
    0
    • R Rohith
      2 Aug 2016, 07:18

      Hi,

      i am using QInputDialog to receive password and now i have to show the password when ever the user want,is it possible to show the password when ever user checks the CheckBox as of Wifi tethering password in our mobiles.

      QString text = QInputDialog::getText(this, tr("Enter Password"),tr("<b>Enter Password <br> Password should be 8 charecters minimum</b>"), QLineEdit::Password,"", &ok);
      
      

      If it is possible please post a sample code

      Thanks in advance,
      Regards,
      Rohith.G

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 2 Aug 2016, 07:23 last edited by
      #2

      @Rohith
      no it's not.
      You would have to implement your custom QDialog subclass.
      Which shouldn't be much of an effort.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0

      1/2

      2 Aug 2016, 07:18

      • Login

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