Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. why Input Panel does not work in QDialog?
Forum Updated to NodeBB v4.3 + New Features

why Input Panel does not work in QDialog?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
input panelqdialog
8 Posts 2 Posters 3.6k 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.
  • M Offline
    M Offline
    MhM93
    wrote on 14 Jun 2016, 05:57 last edited by MhM93
    #1

    Hi.
    I make an application for keyboard less device.
    I used http://doc.qt.io/qt-4.8/qt-tools-inputpanel-example.html for keyboard as virtual keyboard.
    I have a dialog in my project that has two textboxes (one of them for enter user name and the other for input password ) with two buttons: OK and Cancel. after Build the project and run ,the press menu button to show menu form, then the dialog appears to check user authenticate. the user should enter data on text box the virtual keyboard .
    the virtual keyboard (input panel in http://doc.qt.io/qt-4.8/qt-tools-inputpanel-example.html ) appears but the buttons not work.
    when I searched I saw this : http://www.qtforum.org/post/117735/what-is-the-correct-way-to-invoke-a-dialog-so-it-uses-a-qinputcontext.html#post117735 that they say "sounds like you are trying to open another window from the dialog - this is your error. Of course the dialog will stay on top - that is its job."
    because the dialog is modal, the virtual keyboard is disable
    Is there anyway to edit the dialog or keyboard to work in modal widget?

    H.Ghassami

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 Jun 2016, 21:09 last edited by
      #2

      Hi,

      Are you doing something different with that dialog regarding the rest of the application ?

      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
      0
      • M Offline
        M Offline
        MhM93
        wrote on 15 Jun 2016, 03:53 last edited by
        #3

        No. this dialog just open from main window and shows two line edits , and also has OK and cancel button.
        In dialog check the authenticate and make some methods true.
        Just this.

        H.Ghassami

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 Jun 2016, 22:17 last edited by
          #4

          Can you describe what "does not work" means in this context ? What are you expecting ? What are you getting ?

          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
          0
          • M Offline
            M Offline
            MhM93
            wrote on 16 Jun 2016, 05:12 last edited by MhM93
            #5

            @SGaist : I edit my post. So sorry for my bad post.

            really thanks. It solved:

            Modal dialogs are started with exec(), they block the program flow while a nested event loop runs.
            Modeless dialogs are started with show(), they do not block the program flow.
            

            From http://www.qtforum.org/article/14285/modeless-dialog.html
            I use this code :

             MyDialog *d=new MyDialog(this);
               d->show();
               d->raise();
            

            instead of this code:

            MyDialog *d=new MyDialog(this);
               d.exec();
            

            H.Ghassami

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 16 Jun 2016, 20:46 last edited by
              #6

              Are you also deleting it afterward ?

              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
              0
              • M Offline
                M Offline
                MhM93
                wrote on 17 Jun 2016, 08:38 last edited by
                #7

                Restore it.

                H.Ghassami

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 17 Jun 2016, 20:19 last edited by
                  #8

                  Restore it ? What do you mean by that ?

                  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
                  0

                  5/8

                  16 Jun 2016, 05:12

                  • Login

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