Results 1 to 6 of 6

Thread: Qt/X11 source-distro apps corrupting KDE Desktop background

  1. #1
    Join Date
    Mar 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Qt/X11 source-distro apps corrupting KDE Desktop background

    All -

    I am trying to fall back to an older distro of Qt than the Qt 4.5.1 that ships with Fedora 11 as a workaround a broken QtMySQL driver in 4.5.1 (http://www.qtcentre.org/forum/f-qt-p...295-22654.html) but am running into problems with my source distro built apps as follows:

    • Exposed KDE4 Desktop white(app moved)
    • Other apps when moved produce same effect while my Qt app is running
    • KDE4 Plasma workspace context menu will not display
    • Problem observed with Qt apps compiled from Qt source distros 4.3.4 and 4.4.3
    • All Qt libraries (listed via ldd) resolve to Qt distro libraries
    • Problem does not appear if Qt app rebuilt under Fedora Qt 4.5.1
    • Problem clears after a while. Background redraws, context menus work
    • Using latest nVidia driver. OpenGL enabled, have tested with X11 backing store turned on & turned off


    Any suggestions at all as to what might be happening?

    Thanks,
    Bill


    Qt 4.4.3 build config:

    Qt Code:
    1. Configuration ....... system-sqlite release shared dll largefile stl precompile_header separate_debug_info mmx 3dnow sse sse2 qt3support accessibility opengl minimal-config small-config medium-config large-config full-config reduce_exports ipv6 clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify system-jpeg system-mng system-png png system-tiff system-freetype system-zlib nis iconv glib dbus openssl x11sm xshape xrandr xrender fontconfig tablet xkb xmlpatterns svg webkit release
    2. Debug ............... no
    3. Qt 3 compatibility .. yes
    4. QtDBus module ....... yes (run-time)
    5. QtXmlPatterns module yes
    6. Phonon module ....... no
    7. SVG module .......... yes
    8. WebKit module ....... yes
    9. WebKit in Assistant no
    10. STL support ......... yes
    11. PCH support ......... yes
    12. MMX/3DNOW/SSE/SSE2.. yes/yes/yes/yes
    13. IPv6 support ........ yes
    14. IPv6 ifname support . yes
    15. getaddrinfo support . yes
    16. getifaddrs support .. yes
    17. Accessibility ....... yes
    18. NIS support ......... yes
    19. CUPS support ........ no
    20. Iconv support ....... yes
    21. Glib support ........ yes
    22. GStreamer support ... no
    23. Large File support .. yes
    24. GIF support ......... plugin
    25. TIFF support ........ plugin (system)
    26. JPEG support ........ plugin (system)
    27. PNG support ......... yes (system)
    28. MNG support ......... plugin (system)
    29. zlib support ........ system
    30. OpenGL support ...... yes
    31. NAS sound support ... no
    32. Session management .. yes
    33. XShape support ...... yes
    34. Xinerama support .... runtime
    35. Xcursor support ..... runtime
    36. Xfixes support ...... runtime
    37. Xrandr support ...... yes
    38. Xrender support ..... yes
    39. FontConfig support .. yes
    40. XKB Support ......... yes
    41. immodule support .... yes
    42. MySQL support ....... qt
    43. SQLite support ...... plugin (system)
    44. OpenSSL support ..... yes (run-time)
    To copy to clipboard, switch view to plain text mode 
    Last edited by wdezell; 22nd July 2009 at 20:39. Reason: clarification

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt/X11 source-distro apps corrupting KDE Desktop background

    Which KDE4 release you're using? By the way, can't you just compile MySql driver from Qt 4.4 against Qt 4.5? It should work just fine.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt/X11 source-distro apps corrupting KDE Desktop background

    I hadn't thought of trying to use a source-compiled 4.4 MySQL driver with the rpm-installed 4.5.1. I suspect it might work but I'm unsure how to do it. I'd prefer to stay within a single version, though, as I deliver everything to my customer as is required for a complete source-up build (and I don't want to complicate support matters).

    yum list installed reports the following for kdebase:
    kdebase.i586 6:4.2.4-2.fc11


    I am puzzled about the behavior of the source-built Qt's. I've built using Qt source distros many times in the past and never encountered this problem. My ./configure options for X11 seem right to me.

    BE

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt/X11 source-distro apps corrupting KDE Desktop background

    KDE 4.2 doesn't work fell with pre-Qt4.5 installations, as far as I remember.

    But I'd suggest solving the MySQL problem or building the older driver against a newer library. I'd even try deploying older binary driver into newer Qt installation, there is a high chance it will work regardless of different Qt releases.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Mar 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt/X11 source-distro apps corrupting KDE Desktop background

    I seem to recall reading that 4.4 and 4.5 are source/binary compatible. I just rebuilt 4.4.3 to re-test one more time (display still corrupted). I think I will take your suggestion and try installing the MySQL driver from the 4.4.3 build into the 4.5 tree. I'll ldd it an make sure there are no 4.4.3 dependencies burned into it.

    Thanks for the suggestion.

    Bill

  6. #6
    Join Date
    Mar 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt/X11 source-distro apps corrupting KDE Desktop background

    UPDATE:

    The culprit is CPU cycles. My two (unmodified) apps grab a massive amount of CPU time for about 30-45 seconds wall clock time. This prevents desktop background redraw (and other things, like launching KSnapshot to get a picture of it).

    Not sure what's behind this yet. My main()'s fire off QSplashScreens and are liberally sprinkled with qApp->processEvents().

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.