Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133101

GCC defines __PIC__ with -fPIE (was: Weird QObject::findChild() behavior)

    XMLWordPrintable

Details

    • Linux/X11
    • 014e77801 (dev), d07a849e9 (6.9), 803a554d0 (6.8), 675afe02e (tqtc/lts-6.5)

    Description

      The attached C++ program creates a QFileDialog and tries to use findChild() to access the QDialogButtonBox, which is definitely a direct child.

      Finding it as a QObject works, and the classname for the found object is "QDialogButtonBox" as expected. But finding it as a QDialogButtonBox (with or without the name) returns null.

      The output is:

      b1 = 0
      b2 = 0
      b3 = <valid address>
      b3 classname = QDialogButtonBox

      Attachments

        For Gerrit Dashboard: QTBUG-133101
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            pss959 Paul Strauss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes