Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Static function getOpenFileName() of QFileDialog does not produce a native filedialog on KDE4 when linked static.
QtWS25 Last Chance

Static function getOpenFileName() of QFileDialog does not produce a native filedialog on KDE4 when linked static.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.5k Views
  • 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.
  • T Offline
    T Offline
    Trino
    wrote on last edited by
    #1

    Hello,

    I configured, and compiled the Qt-libraries from source and static.
    I linked the Qt-libraries static into my application.

    I use the static function of QFileDialog getOpenFileName() in order to get the native filedialogs.
    This works with windows XP and with Ubuntu & Gnome. (Qt libs are linked static!)
    The problem is that is does not work on openSUSE & KDE4.
    On KDE4 I get the nonnative Qt QFileDialog.

    How do I get the native KDE filedialog on KDE4 when Qt-libraries are linked static?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MTK358
      wrote on last edited by
      #2

      So it uses the KDE file dialog when dynamically linked?

      1 Reply Last reply
      0
      • O Offline
        O Offline
        okachobi
        wrote on last edited by
        #3

        I'm troubleshooting a similarly strange issue. QT seems uses the KDE native File Chooser when I include the svg, network, and dbus modules (QT += network dbus svg)

        But if I remove ANY single one of those, it goes back to the QT File chooser. Its very bizarre that the svg module has any impact on that! I could see where network and dbus might have some affect, but svg?

        Not only that, apparently when using the KDE4 native chooser, QT receives a language change message ( "http://bugreports.qt.nokia.com/browse/QTBUG-14438":http://bugreports.qt.nokia.com/browse/QTBUG-14438 ) from the native dialog that causes it to reset the UI to the defaults initially set for the interface!

        This all seems horribly inconsistent and broken. Whether QT is to blame or KDE, the two need to get together and figure it out. This behavior occurs with the Kubuntu 10.04 LTS distribution and will be around for some time. Its definitely in QT's interest for KDE to continue to work properly since they are so integrated. Many people choose KDE/Kubuntu because of that fact.

        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