×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Question QueryDialog mouse area problem

    Hi i am using a query dialog to display data to user
    the problem that i am facing is when i need the user to choose between 2 choices ( the buttons) if the user click on anywhere on the screen other then the buttons too , the dialog is disappearing and the result is as user clicked the reject button
    what i need is the user cannot click anywhere unless it is the 2 buttons and if he clicks anywhere else , the dialog is still running waiting for user input
    what i am using is the following:
    QueryDialog {
    id: dialog23
    icon: "image://theme/icon-l-contacts"
    titleText: "Share ?"
    message: "Please select your option"

    acceptButtonText: " Share with a friend"
    rejectButtonText: "Share with a number"

    onAccepted: {
    console.log("friend");
    pageStack.push(Qt.resolvedUrl(".....qml"));
    }
    onRejected: console.log("number");
    what should i do to solve my problem?

    Thank you

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: QueryDialog mouse area problem

    I suggest you to use QML SelectionDialog Element instead of QML QueryDialog Element

    regards,
    rahul

  3. #3
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: QueryDialog mouse area problem

    Quote Originally Posted by rahulvala View Post
    I suggest you to use QML SelectionDialog Element instead of QML QueryDialog Element

    regards,
    rahul
    but i will face the same problem!!
    i dont want the selection dialog to disappear if i click anywhere on the screen
    i need something similar to delete a contact or a message in N9 device
    the dialog is not disappearing unless i click one of the buttons
    Regards

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: QueryDialog mouse area problem

    A bug has been raised about the same issue. it seems that as far as the QML implementation goes, this is actually a bug, as the Dialog element (and those that inherit from it, like QueryDialog) should be modal. For a followup please watch the discussion about the bug at

    https://bugreports.qt.nokia.com/brow...OMPONENTS-1070

    As a workaround until the bug gets fixed, you could re-launch the (Query)Dialog in case it has been closed by tapping outside of the buttons (i.e. canceled).

Similar Threads

  1. Problem with QueryDialog
    By e.merhej in forum [Archived] Qt Quick
    Replies: 6
    Last Post: 2011-12-01, 18:59
  2. QML QueryDialog
    By cycnus in forum [Archived] Qt Quick
    Replies: 2
    Last Post: 2011-08-15, 16:44
  3. Replies: 12
    Last Post: 2011-03-29, 16:38
  4. Replies: 3
    Last Post: 2009-03-19, 11:46
  5. QueryDialog can be fullscreen?
    By jpottojp in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-03-28, 22:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×