First use Qt interest mailing list. Since this is a developer list let's throw this out there:
Next why is an **app** **implementing** a lock screen? It would be far better for Qt to integrate with whatever authentication mechanisms provides. For example:
 
if (QAuthProvider::mechanisms(QAuthProvider::Biometric).length() > 0)
    QAuthResult result = QAuthProvider::challenge();
    if (result.success() && result.method() & Mechanism::Biometric) {
    
    }
 
}
 
I'm imagining:
class QAuthResult {
...
   bool result();
   Method method();
   QString providerName(); /* e.g. Google, Twitter */
   QString sessionIdentifier();
  
};
 
class QAuthProvider {
...
enum class Mechanisms {
   None =0,
   Password = 1,
   FingerPrint =2,
   FacialPrint = 4,
   DNA = 8,
   Pin = 16,
   Pattern = 32,
   Network = 64, /* http://doc.qt.io/qt-5/qauthenticator.html */
   Social = 128,   /* https://doc.qt.io/qt-5/qtnetworkauth-module.html */
 
// categories:
   Biometric = FingerPint | FacialPrint | DNA,
   Memory = Password | Pin | Pattern,
   Remote = Network | Social,
   Local = Biometric | Memory,
 
   CustomBase = 1024
};
 
static mechanisms(Mechanisms);
static challenge()
static registerCustomMechanism (QAbstractAuthProviderBase *customProvider); 
};
This would be the finger print reader on phones, laptops, FaceId on iPhones, and passwords as the worst-case fall-back.
 
 
Until something like that comes along, you'll need to use a MouseArea and a Canvas, as the simpleest way to do it.
 
 
Sent: Friday, December 14, 2018 at 3:47 AM
From: "Akın Gümüşkavak" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Development] Qml draw pattern as password

Hello,

 

I'm trying to develop a drawing pattern area as password field in Qml. I've made some research but could not find anything useful. 

Now, I am thinking to use MouseArea. I can identify points in this area and I can get mouse X and Y positions on pressed. But it is getting complicated. 

Is there any easier way to implement this feature or is there any example about this? 

 

Thanks for your help,

Best regards

 

_______________________________________________ Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to