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. QLineEdit problem in Qt for Symbian
Forum Updated to NodeBB v4.3 + New Features

QLineEdit problem in Qt for Symbian

Scheduled Pinned Locked Moved Mobile and Embedded
12 Posts 4 Posters 5.7k 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.
  • S Offline
    S Offline
    smotiwala
    wrote on last edited by
    #1

    I'm working on Qt 4.6.3 for symbian. I have a problem with QLineEdit.

    The scenario is, I have two QMainWindow, one QMainwindow have two QlineEdit and a QPushButton controls and other QMainWindow have QListWidget control.After opening and closing second QmMainWindow from first QMainWindow, the QLineEdit controls of first QMainWindow are uneditable. I want it editable.

    Why it is uneditable after closing second QMainWindow. What should I do for making editable?

    Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stukdev
      wrote on last edited by
      #2

      Maybe is useful if you post the code.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexander
        wrote on last edited by
        #3

        Why are you using two QMainWIndow?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          smotiwala
          wrote on last edited by
          #4

          code is simple

          on QMainWindow1 QPushButton clicked
          @
          void QMainWindow1::onPushbuttonclick() {
          QMainWindow2 *w2 = new QMainWindow2();
          w2.showMaximised();
          }

          @

          and adding "this->close() on QMainWindow2

          @
          void QMainWindow2::onExitclick() {
          this->close()
          }
          @

          1 Reply Last reply
          0
          • S Offline
            S Offline
            smotiwala
            wrote on last edited by
            #5

            I have used the second QmainWindow for user selection like popup dialog for selection of data. After selection user closes the second QMainWindow and that data will be transmit it to the first QMainWindow.

            Kindly let me know if any other approach I use for popup selection.

            Thanks in advance.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              alexander
              wrote on last edited by
              #6

              Why not QDialog?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stukdev
                wrote on last edited by
                #7

                You can also use a "QDialog":http://doc.trolltech.com/latest/qdialog.html for this, if is only a forms that is close after the function.

                [quote author="smotiwala" date="1292588751"]I have used the second QmainWindow for user selection like popup dialog for selection of data. After selection user closes the second QMainWindow and that data will be transmit it to the first QMainWindow.

                Kindly let me know if any other approach I use for popup selection.

                Thanks in advance.[/quote]

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  smotiwala
                  wrote on last edited by
                  #8

                  Thanks. do you have exampleto make custom QDialog in which I add QListWidget?

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #9

                    [quote author="smotiwala" date="1292589598"]Thanks. do you have exampleto make custom QDialog in which I add QListWidget?[/quote]

                    It's basically the same as with a QMainWindow.

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      smotiwala
                      wrote on last edited by
                      #10

                      If it is same as QMainWindow then I guess it will also do the same as QMainWindow and QLineEdit problem persist

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on last edited by
                        #11

                        Don't guess - try :-)
                        Never heard of a closed QDialog that does not transfer keyboard focus back to its calling form.

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          smotiwala
                          wrote on last edited by
                          #12

                          Ok i'll try it. Thanks:)

                          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