Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-158

In QtBrowserPlugin QLineEdit is not working on X11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Some Release
    • BrowserPlugin
    • None
    • Tested with Qt 4.6.1, 4.7.1, 4.7.3 on Ubuntu 10.04 with firefox 3.6

    Description

      Modifying the example code Trivial.cpp

      Trivial(QWidget *parent = 0)
      : QWidget()

      { m_label = new QLabel(QString::fromLatin1("Empty")); m_label->setText("Empty"); m_lineEdit = new QLineEdit(); QVBoxLayout *layout = new QVBoxLayout; layout->addWidget(m_label); layout->addWidget(m_lineEdit); setLayout(layout); }

      The label and the editor becomes visible (in some cases like the javascript example and pressing the about button), but its not possible to give them focus.
      The same example works on Windows and Osx.
      Problem can be that it uses QX11EmbedWidget, but it is not running in a separate process and the qt events are not getting sent. If qApp->exec() is called somewhere in the plugin then the browser freezes, but the widget works.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            andysh Andy Shaw
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes