Hidden windows of Qt 5 applications are visible

Bug #1243239 reported by Roman
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
qtbase-opensource-src (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hidden (closed) windows of Qt5 applications are visible with frozen content.

Can be reproduced even with qtcreator (2.7.1-0ubuntu10) :
- File -> Open File or Project
- "Open File" dialog becomes visible and then you can see one more window

Ubuntu 13.10 i386 / amd64 installed onto clear system
Ubuntu 13.04 with Qt 5.0.1 doesn't have this bug
Qt 5.0.2, installed from digia site doesn't have this bug

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: qtbase5-dev 5.0.2+dfsg1-7ubuntu11
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2
Architecture: amd64
Date: Tue Oct 22 17:07:14 2013
InstallationDate: Installed on 2013-10-21 (0 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MarkForUpload: True
SourcePackage: qtbase-opensource-src
UpgradeStatus: No upgrade log present (probably fresh install)

CVE References

Revision history for this message
Roman (kutashenko) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtbase-opensource-src (Ubuntu):
status: New → Confirmed
Revision history for this message
Florian W. (florian-will) wrote :

Having the same problem. Can reproduce in Qt Creator just like Roman:
* In Qt Creator, open the "Open File or Project" dialog
* Click the Qt Creator icon in Unity launcher to switch to expose view
* notice there are three Qt Creator windows open (main window, open file dialog, and one small, strange window with frozen content that's probably supposed to be hidden and can't be closed).

Can also be reproduced using a simple Qt demo app with one MainWindow (as created by Qt Creator) and something like this in main.cpp (calls to show() and hide() can be dropped, resulting in the same behaviour):

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    w.hide();
    return a.exec();
}

Revision history for this message
kaillasse91@hotmail.fr (kaillasse91) wrote :

Same bug with 13.10, fresh install.

#include <QApplication>
#include <QPushButton>
#include <QGraphicsScene>
#include <QGraphicsProxyWidget>
#include <QGraphicsView>

int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    //app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);

    QPushButton *pushButton = new QPushButton("Quit App.");
    QGraphicsScene scene;
    QGraphicsProxyWidget *proxy = scene.addWidget(pushButton);
    QGraphicsView view(&scene);

    // if the view is not defined as the parent it opens in another windows
    // this is qt5 behaviour only
    pushButton->setParent(&view);

    QObject::connect(pushButton, SIGNAL(clicked()),
                     &app, SLOT(quit()));

    view.show();

    return app.exec();
}

Revision history for this message
kaillasse91@hotmail.fr (kaillasse91) wrote :

And with qtcreator too.

Revision history for this message
Roman (kutashenko) wrote :

Same problem with Qt 5.0.2 from digia site. But in xubuntu only.

Revision history for this message
kaillasse91@hotmail.fr (kaillasse91) wrote :

Qt 5.0.2 from digia doesn't have the problem on xubuntu 13.10

You have to tell the system to not use the ubuntu lib:

Get the libraries path, if you've installed in /opt it's:
/opt/Qt5.0.2/5.0.2/gcc_64/lib

Simply put the path in a .conf file in /etc/ld.so.conf.d and run ldconfig.

This solves the problem for me.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

These bugs, like bug #1181192, are resolved in the Qt 5.2.1 in Ubuntu 14.04.

(backports of Qt 5.2.1 to 13.10 and 12.04 are in the works, but will take some time still before offered via the SDK PPA)

Changed in qtbase-opensource-src (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
Download full text (13.2 KiB)

---changelog---
qtbase-opensource-src (5.2.1+dfsg-1ubuntu7) trusty; urgency=medium

  [ Colin Watson ]
  * Add arm64 to archs that don't use -m64

qtbase-opensource-src (5.2.1+dfsg-1ubuntu6) trusty; urgency=medium

  * Add Use-None-instead-of-GLX_NONE.patch:
    - Cherry-pick upstream patch (LP: #1288278)

qtbase-opensource-src (5.2.1+dfsg-1ubuntu5) trusty; urgency=medium

  * Only run tests on armhf, amd64 and i386.

qtbase-opensource-src (5.2.1+dfsg-1ubuntu4) trusty; urgency=medium

  [ Chris Gagnon ]
  * Enable unit tests

qtbase-opensource-src (5.2.1+dfsg-1ubuntu3) trusty; urgency=medium

  * Revert the transitional package change final landing.

qtbase-opensource-src (5.2.1+dfsg-1ubuntu2) trusty; urgency=medium

  * libqt5core5 transitional package to be able to run ABI related tests

qtbase-opensource-src (5.2.1+dfsg-1ubuntu1) trusty; urgency=low

  [ Dmitry Shachnev ]
  * Update watch file (taken from Debian).
  * Fix generating documentation by building qdoc before using it.
  * Remove qtcreator.qdoc from qtbase5-doc.install, as it is already in
    qtbase5-dev.install.
  * Merge with Debian up to 5.2.0~beta1+dfsg-3.
    - Fixes build failures on powerpc and armel.
  * Add debian/patches/fix_cppcodemarker_crash.patch to fix qdoc
    crash that caused ubuntu-ui-toolkit to FTBFS (LP: #1217331).

  [ Łukasz 'sil2100' Zemczak ]
  * Cherry-pick two submitted patches to support appmenu-qt: (LP: #1157213)
    - make_qkdetheme_constructor_public.diff
    - platformtheme_env.diff

  [ Timo Jyrinki ]
  * New upstream release 5.2.1 (LP: #1256341) (LP: #1223032) (LP: #1222988)
    (LP: #1223042) (LP: #1253120) (LP: #1251262)
  * Sync with Debian 5.2.0+dfsg-7, remaining changes:
    - Remove firebird and ibase dependencies
    - Maintainer fields and Vcs-Bzr
    - No gdb required on ppc64el
    - Provides: qt-default to qt5-default
    - Define explicit list on which archs openvg required
    - Additional patches:
      + disable_overlay_scrollbars.diff
      + load_testability_from_env_var.patch
      + make_qkdetheme_constructor_public.diff
      + platformtheme_env.diff
      + qdoc-Fix-crash-in-Generator-generateInnerNode.patch
      + 0001-Do-not-overwrite-basePixmap-of-QIconLoader-PixmapEnt.patch
    - Use our symbols files
    - Additional multi-arch packages (not correct policy-wise)
  * Drop upstream patches:
    - add_since_52_to_new_QColor_features.patch
    - fix_cppcodemarker_crash.patch
    - fix_usr-move_workaround_in_the_presence_of_multi-arch.patch
    - make_QColor_understand_AARRGGBB.patch
    - Add-workaround-for-GL-on-Android-emulator.patch
    - 0001-Do-not-overwrite-basePixmap-of-QIconLoader-PixmapEnt.patch
    - fix_destroy_qapp_segfault.diff
  * Remove Ubuntu patches:
    - enable_appmenu_support.diff (obsolete)
    - 0001-Implement-XEmbed-protocol.patch (submitted and merged upstream)
    - fix_maliit_activation.patch (not used anymore)
    - inputmethod_fix_focusout.patch (not used anymore)
    - fix_number_precision_qjsondocument.patch_8e8becdc.patch (upstream)
    - bug1227629.patch (merged upstream)
    - fix_rowinserted.patch (LP: #1242630)
  * Update symbols and mark private ones
  * Add armhf specific CMake files
 ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.