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. How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e)
Qt 6.11 is out! See what's new in the release blog

How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e)

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 1.5k 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.
  • Vinod KuntojiV Offline
    Vinod KuntojiV Offline
    Vinod Kuntoji
    wrote on last edited by
    #1

    How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e)

    C++, Qt, Qt Quick Developer,
    PthinkS, Bangalore

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Vinod-Kuntoji said in How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e):

      QWidget::inputMethodEvent

      is an event handler which you can reimplement to do custom stuff. There is no need to call it directly.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • Vinod KuntojiV Offline
        Vinod KuntojiV Offline
        Vinod Kuntoji
        wrote on last edited by
        #3

        @Christian-Ehrlicher , Ya, I know, but It is not getting called onTextChanged signal.

        C++, Qt, Qt Quick Developer,
        PthinkS, Bangalore

        JonBJ 1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I'm not really familiar with QInputMethodEvent but why should this be created during onTextChanged? Please give some more informations what you're trying to achieve. Best would be a compilable example.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          2
          • Vinod KuntojiV Offline
            Vinod KuntojiV Offline
            Vinod Kuntoji
            wrote on last edited by
            #5

            @Christian-Ehrlicher ,

            I want to know when this inputMethodEvent() method gets called.

            C++, Qt, Qt Quick Developer,
            PthinkS, Bangalore

            mrjjM 1 Reply Last reply
            0
            • Vinod KuntojiV Vinod Kuntoji

              @Christian-Ehrlicher ,

              I want to know when this inputMethodEvent() method gets called.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              Hi
              Did you study the docs ?
              It says "Note that when creating custom text editing widgets, the Qt::WA_InputMethodEnabled window attribute must be set explicitly (using the QWidget::setAttribute() function) in order to receive input method events."

              But i do wonder what you need it for ?

              1 Reply Last reply
              1
              • Vinod KuntojiV Offline
                Vinod KuntojiV Offline
                Vinod Kuntoji
                wrote on last edited by
                #7

                @mrjj said in How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e):

                WA_InputMethodEnabled

                I am setting this attribute Qt::WA_InputMethodEnabled

                C++, Qt, Qt Quick Developer,
                PthinkS, Bangalore

                1 Reply Last reply
                0
                • Vinod KuntojiV Vinod Kuntoji

                  @Christian-Ehrlicher , Ya, I know, but It is not getting called onTextChanged signal.

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by JonB
                  #8

                  @Vinod-Kuntoji said in How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e):

                  @Christian-Ehrlicher , Ya, I know, but It is not getting called onTextChanged signal.

                  I would have thought: it won't get called "on"/"from"/"as a result of" textChanged signal. It will be called as a consequence of the input, earlier than textChanged, no?

                  Vinod KuntojiV 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @Vinod-Kuntoji said in How to call QLineEdit::inputMethodEvent(QInputMethodEvent *e):

                    @Christian-Ehrlicher , Ya, I know, but It is not getting called onTextChanged signal.

                    I would have thought: it won't get called "on"/"from"/"as a result of" textChanged signal. It will be called as a consequence of the input, earlier than textChanged, no?

                    Vinod KuntojiV Offline
                    Vinod KuntojiV Offline
                    Vinod Kuntoji
                    wrote on last edited by
                    #9

                    @JonB

                    I reimplemeted this method, It is not at all getting called.

                    C++, Qt, Qt Quick Developer,
                    PthinkS, Bangalore

                    JonBJ 1 Reply Last reply
                    0
                    • Vinod KuntojiV Vinod Kuntoji

                      @JonB

                      I reimplemeted this method, It is not at all getting called.

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by
                      #10

                      @Vinod-Kuntoji
                      What does that have to do with your statement:

                      Ya, I know, but It is not getting called onTextChanged signal.

                      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