Get back old Qt 5 getOpenFIleName widget in Qt6
-
Hello,
i upgraded my project from Qt5 to Qt6 and now the QFileDialog::getOpenFileName widget looks like this:
Before, when the program was on Qt5 it looked different:
As you can see there were more shortcuts on the left side that made file browsing much easier. I wonder why it was changed and how to get back the old style? (of course without rolling back the whole project to Qt5)
-
Hello,
i upgraded my project from Qt5 to Qt6 and now the QFileDialog::getOpenFileName widget looks like this:
Before, when the program was on Qt5 it looked different:
As you can see there were more shortcuts on the left side that made file browsing much easier. I wonder why it was changed and how to get back the old style? (of course without rolling back the whole project to Qt5)
@QT-static-prgm How exactly are you calling QFileDialog::DontUseNativeDialog?
Do you pass QFileDialog::DontUseNativeDialog as "options" parameter to FileDialog::getOpenFileName? -
@QT-static-prgm How exactly are you calling QFileDialog::DontUseNativeDialog?
Do you pass QFileDialog::DontUseNativeDialog as "options" parameter to FileDialog::getOpenFileName?The old dialog looks like a native gtk (?) dialog. When Qt6 has no plugin for this (anymore), the native dialog can not be called.
-
@QT-static-prgm How exactly are you calling QFileDialog::DontUseNativeDialog?
Do you pass QFileDialog::DontUseNativeDialog as "options" parameter to FileDialog::getOpenFileName?@jsulm i don't use this QFileDIalog::DontUseNativeDialog option.
This is how i call the file dialog
QString f = QFileDialog::getOpenFileName(this, tr("Open CAD file"), "", DATA_FILE_OPEN_PATTERN);
-
@jsulm i don't use this QFileDIalog::DontUseNativeDialog option.
This is how i call the file dialog
QString f = QFileDialog::getOpenFileName(this, tr("Open CAD file"), "", DATA_FILE_OPEN_PATTERN);
I don't have the issue with an older version of Qt 6.5.3. It is only with version 6.6.1 that i build from source.
Any idea what i might did wrong?
I configured it this way:
./configure -prefix "/home/developer/Qt/6.6.1/gcc_64" -debug-and-release -xcb -opensource -confirm-license cmake --build . --parallel
i had issues with fonts as well, so i created a symlink like this
ln -snf /usr/share/fonts .
-
I don't have the issue with an older version of Qt 6.5.3. It is only with version 6.6.1 that i build from source.
Any idea what i might did wrong?
I configured it this way:
./configure -prefix "/home/developer/Qt/6.6.1/gcc_64" -debug-and-release -xcb -opensource -confirm-license cmake --build . --parallel
i had issues with fonts as well, so i created a symlink like this
ln -snf /usr/share/fonts .
@QT-static-prgm said in Get back old Qt 5 getOpenFIleName widget in Qt6:
t is only with version 6.6.1 that i build from source.
Any idea what i might did wrong?You forgot some development packages so the gtk plugin is not build. See the configure summary after executing cmake to see what's missing.
-
@QT-static-prgm said in Get back old Qt 5 getOpenFIleName widget in Qt6:
t is only with version 6.6.1 that i build from source.
Any idea what i might did wrong?You forgot some development packages so the gtk plugin is not build. See the configure summary after executing cmake to see what's missing.
@Christian-Ehrlicher
i downloaded the latest 6.7.0 now and will try with a clean build from source.Here is the config summary. Do you already see any issues?
I will update you if it works now once qt is builtBuilding for: linux-g++ (x86_64, CPU features: ) Compiler: gcc 11.4.0 Build options: Mode ................................... debug and release Optimize debug build ................... yes Optimize release build for size ........ no Fully optimize release builds (-O3) .... no Building shared libraries .............. yes Using ccache ........................... no Unity Build ............................ no Using new DTAGS ........................ yes Generating GDB index ................... no Relocatable ............................ yes Using precompiled headers .............. yes Using Link Time Optimization (LTCG) .... no Using Intel CET ........................ yes Target compiler supports: x86 Intrinsics ....................... Basic VAES AVX512VBMI2 Sanitizers: Addresses ............................ no Threads .............................. no Memory ............................... no Fuzzer (instrumentation only) ........ no Undefined ............................ no Build parts ............................ libs tools Install examples sources ............... no Qt modules and options: Qt Concurrent .......................... yes Qt D-Bus ............................... yes Qt D-Bus directly linked to libdbus .... no Qt Gui ................................. yes Qt Network ............................. yes Qt PrintSupport ........................ yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... yes Using vcpkg ............................ no udev ................................... no OpenSSL ................................ yes Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no OpenSSL 3.0 ............................ yes Using system zlib ...................... yes Zstandard support ...................... no Thread support ......................... yes Common build options: Linker can resolve circular dependencies yes Qt Core: backtrace .............................. yes DoubleConversion ....................... yes Using system DoubleConversion ........ no CLONE_PIDFD support in forkfd .......... yes GLib ................................... no ICU .................................... yes Using system libb2 ..................... no Built-in copy of the MIME database ..... yes Application permissions ................ yes Defaulting legacy IPC to POSIX ......... no Tracing backend ........................ <none> OpenSSL based cryptographic hash ....... no Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... no Qt Sql: SQL item models ........................ yes Qt Network: getifaddrs() ........................... no IPv6 ifname ............................ no libproxy ............................... no Linux AF_NETLINK ....................... yes DTLS ................................... yes OCSP-stapling .......................... yes SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Brotli Decompression Support ........... no qIsEffectiveTLD() ...................... yes Built-in publicsuffix database ....... yes System publicsuffix database ......... yes Core tools: Android deployment tool ................ yes macOS deployment tool .................. no Windows deployment tool ................ no qmake .................................. yes Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ no HarfBuzz ............................... yes Using system HarfBuzz ................ no Fontconfig ............................. no Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... no PNG .................................. yes Using system libpng ................ no Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... yes OpenVG ................................. no OpenGL: Desktop OpenGL ....................... yes OpenGL ES 2.0 ........................ no OpenGL ES 3.0 ........................ no OpenGL ES 3.1 ........................ no OpenGL ES 3.2 ........................ no Vulkan ................................. no Session Management ..................... yes Features used by QPA backends: evdev .................................. yes libinput ............................... no HiRes wheel support in libinput ........ no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. yes X11 specific: XLib ................................. yes XCB Xlib ............................. yes EGL on X11 ........................... yes xkbcommon-x11 ........................ yes xcb-sm ............................... no QPA backends: DirectFB ............................... no EGLFS .................................. yes EGLFS details: EGLFS OpenWFD ........................ no EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS RCAR ........................... no EGLFS EGLDevice ...................... yes EGLFS GBM ............................ no EGLFS VSP2 ........................... no EGLFS Mali ........................... no EGLFS Raspberry Pi ................... no EGLFS X11 ............................ yes LinuxFB ................................ yes VNC .................................... yes VK_KHR_display ......................... no QNX: lgmon ................................ no IMF .................................. no XCB: Using system-provided xcb-xinput ..... no GL integrations: GLX Plugin ......................... yes XCB GLX .......................... yes EGL-X11 Plugin ..................... yes Windows: Direct 2D ............................ no Direct 2D 1.1 ........................ no DirectWrite .......................... no DirectWrite 3 ........................ no Qt Widgets: GTK+ ................................... no Styles ................................. Fusion Windows Qt Testlib: Tester for item models ................. yes Batch tests ............................ no Qt PrintSupport: CUPS ................................... no Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... no PostgreSQL ............................. no SQLite ................................. yes Using system provided SQLite ......... no Mimer .................................. no Further Image Formats: JasPer ................................. no MNG .................................... no TIFF ................................... yes Using system libtiff ................. no WEBP ................................... yes Using system libwebp ................. no Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML XML http request ................... yes QML Locale ............................. yes QML SSL support ........................ yes Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML XML http request ................... yes QML Locale ............................. yes QML SSL support ........................ yes Qt QML Models: QML list model ......................... yes QML delegate model ..................... yes Qt Quick: AnimatedImage item ..................... yes Canvas item ............................ yes Support for Qt Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes TreeView item .......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes Qt Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes Calendar support ....................... yes Qt Quick Controls 2: Styles ................................. Basic Fusion Imagine Material Universal QtQuick3D: Assimp ................................. yes System Assimp .......................... no Qt Multimedia: Spatial Audio .......................... yes Spatial Audio (Quick3D) ................ yes Low level Audio Backend: ALSA (experimental) .................. no PulseAudio ........................... no MMRenderer ........................... no CoreAudio ............................ no Windows Media SDK .................... no Open SLES (Android) .................. no Web Assembly ......................... no Plugin: GStreamer 1.0 ........................ no FFmpeg ............................... no MMRenderer ........................... no AVFoundation ......................... no Windows Media Foundation ............. no Hardware acceleration and features: Video for Linux ...................... yes VAAPI support ........................ no Linux DMA buffer support ............. yes VideoToolbox ......................... no Qt 3D: Assimp ................................. yes System Assimp .......................... no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes Qt 3D APIs: Vulkan ................................. no Qt 3D Renderers: OpenGL Renderer ........................ yes RHI Renderer ........................... yes Qt3D Geometry Loaders: Autodesk FBX ........................... no Qt 5 Compatibility Libraries: iconv .................................. no Qt Charts Types: Area Chart ............................. yes Line Chart ............................. yes Spline Chart ........................... yes Scatter Chart .......................... yes Bar Chart .............................. yes Pie Chart .............................. yes Boxplot Chart .......................... yes Candlestick Chart ...................... yes Qt Axis Types: DateTime Axis .......................... yes Qt Bluetooth: BlueZ .................................. no BlueZ Low Energy ....................... no Linux Crypto API ....................... no WinRT Bluetooth API .................... no Qt Graphs Support: 2D Graphs .............................. yes 3D Graphs .............................. yes Qt Graphs 3D: Bars3D ................................. yes Scatter3D .............................. yes Surface3D .............................. yes Serial Port: ntddmodm ............................... no Qt Tools: Qt Assistant ........................... yes libclang found ......................... no Clang-based lupdate parser ............. no Qt Designer ............................ yes Qt Distance Field Generator ............ yes Qt Linguist ............................ yes pixeltool .............................. yes qdbus .................................. yes QDoc ................................... no Qt Attributions Scanner ................ yes qtdiag ................................. yes qtplugininfo ........................... yes WebEngine Repository Build Options: Build Ninja ............................ no Build Gn ............................... yes Jumbo Build ............................ yes Developer build ........................ no Build QtWebEngine Modules: Build QtWebEngineCore ................ no Build QtWebEngineWidgets ............. no Build QtWebEngineQuick ............... no Build QtPdf Modules: Build QtPdfWidgets ................... no Build QtPdfQuick ..................... no Optional system libraries: re2 .................................. no icu .................................. no libwebp, libwebpmux and libwebpdemux . no opus ................................. no ffmpeg ............................... no libvpx ............................... no snappy ............................... no glib ................................. no zlib ................................. yes minizip .............................. no libevent ............................. no libxml2 and libxslt .................. no lcms2 ................................ no png .................................. no tiff ................................. no jpeg ................................. no libopenjpeg2 ......................... no harfbuzz ............................. no freetype ............................. no libpci ............................... no Qt Protobuf: Qt Core types support .................. no Qt Gui types support ................... no Well-known types support ............... no Qt Protobuf tools: Qt Protobuf generator .................. no Qt GRPC: gRPC support ........................... yes QML gRPC support ....................... yes Qt GRPC tools: Qt GRPC generator ...................... no Qt Opcua: Open62541 .............................. yes Support for namespace 0 NodeId names ... yes Internal code generator ................ no Open62541 security support ............. yes Support for global discovery server .... yes Data type code generator ............... yes Qt Remote Objects: High Availability Manager (ham) ........ no Qt Scxml: ECMAScript data model for QtScxml ...... yes Qt Sensors: sensorfw ............................... no sensorfw_enabled_with_cmake ............ no Qt SerialBus: Socket CAN ............................. yes Socket CAN FD .......................... yes SerialPort Support ..................... yes Qt TextToSpeech: Flite .................................. no Flite with ALSA ........................ no Speech Dispatcher ...................... no Qt Virtualkeyboard: Desktop integration .................... yes Built-in layouts ....................... yes Key navigation ......................... no Retro style as default ................. no Sensitive Debug ........................ no Cerence ................................ no Static Linking ....................... no Handwriting .......................... no Alphabetic ......................... no CJK ................................ no XT9 .................................. no XT9 Debug .......................... no XT9 9-key layouts .................. no Bundle resources ..................... no Handwriting ........................ no XT9 ................................ no Hunspell ............................... no Using Hunspell copy from 3rdparty/ ... no OpenWnn ................................ yes MyScript ............................... no Example HWR ............................ no Language support enabled for: Arabic ............................... yes Bulgarian ............................ yes Czech ................................ yes Danish ............................... yes German ............................... yes Greek ................................ yes English GB ........................... yes English US ........................... yes Spanish .............................. yes Spanish Mexico ....................... yes Estonian ............................. yes Farsi ................................ yes Finnish .............................. yes French Canada ........................ yes French France ........................ yes Hebrew ............................... yes Hindi ................................ yes Croatian ............................. yes Hungarian ............................ yes Indonesian ........................... yes Italian .............................. yes Japanese ............................. yes Korean ............................... yes Malay ................................ yes Norwegian ............................ yes Dutch ................................ yes Polish ............................... yes Portuguese Brazil .................... yes Portuguese Portugal .................. yes Romanian ............................. yes Russian .............................. yes Slovak ............................... yes Slovenian ............................ yes Albanian ............................. yes Serbian .............................. yes Swedish .............................. yes Thai ................................. yes Turkish .............................. yes Ukrainian ............................ yes Vietnamese ........................... yes Simplified Chinese ................... yes Traditional Chinese .................. yes HongKong Chinese ..................... no Traditional chinese input methods: Zhuyin ............................... yes Cangjie .............................. yes Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing. Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available. WARNING: No backend for low level audio found. WARNING: QDoc will not be compiled, probably because clang's C and C++ libraries could not be located. This means that you cannot build the Qt documentation. You may need to set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation. Other than clang's libraries, you may need to install another package, such as clang itself, to provide the ClangConfig.cmake file needed to detect your libraries. Once this file is in place, the configure script may be able to detect your system-installed libraries without further environment variables. On macOS, you can use Homebrew's llvm package. You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check. WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found. You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check. WARNING: QtWebEngine won't be built. node.js version 14 or later is required. WARNING: QtPdf won't be built. node.js version 14 or later is required. WARNING: SensorFW support currently not enabled with cmake
-
@Christian-Ehrlicher
i downloaded the latest 6.7.0 now and will try with a clean build from source.Here is the config summary. Do you already see any issues?
I will update you if it works now once qt is builtBuilding for: linux-g++ (x86_64, CPU features: ) Compiler: gcc 11.4.0 Build options: Mode ................................... debug and release Optimize debug build ................... yes Optimize release build for size ........ no Fully optimize release builds (-O3) .... no Building shared libraries .............. yes Using ccache ........................... no Unity Build ............................ no Using new DTAGS ........................ yes Generating GDB index ................... no Relocatable ............................ yes Using precompiled headers .............. yes Using Link Time Optimization (LTCG) .... no Using Intel CET ........................ yes Target compiler supports: x86 Intrinsics ....................... Basic VAES AVX512VBMI2 Sanitizers: Addresses ............................ no Threads .............................. no Memory ............................... no Fuzzer (instrumentation only) ........ no Undefined ............................ no Build parts ............................ libs tools Install examples sources ............... no Qt modules and options: Qt Concurrent .......................... yes Qt D-Bus ............................... yes Qt D-Bus directly linked to libdbus .... no Qt Gui ................................. yes Qt Network ............................. yes Qt PrintSupport ........................ yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... yes Using vcpkg ............................ no udev ................................... no OpenSSL ................................ yes Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no OpenSSL 3.0 ............................ yes Using system zlib ...................... yes Zstandard support ...................... no Thread support ......................... yes Common build options: Linker can resolve circular dependencies yes Qt Core: backtrace .............................. yes DoubleConversion ....................... yes Using system DoubleConversion ........ no CLONE_PIDFD support in forkfd .......... yes GLib ................................... no ICU .................................... yes Using system libb2 ..................... no Built-in copy of the MIME database ..... yes Application permissions ................ yes Defaulting legacy IPC to POSIX ......... no Tracing backend ........................ <none> OpenSSL based cryptographic hash ....... no Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... no Qt Sql: SQL item models ........................ yes Qt Network: getifaddrs() ........................... no IPv6 ifname ............................ no libproxy ............................... no Linux AF_NETLINK ....................... yes DTLS ................................... yes OCSP-stapling .......................... yes SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Brotli Decompression Support ........... no qIsEffectiveTLD() ...................... yes Built-in publicsuffix database ....... yes System publicsuffix database ......... yes Core tools: Android deployment tool ................ yes macOS deployment tool .................. no Windows deployment tool ................ no qmake .................................. yes Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ no HarfBuzz ............................... yes Using system HarfBuzz ................ no Fontconfig ............................. no Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... no PNG .................................. yes Using system libpng ................ no Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... yes OpenVG ................................. no OpenGL: Desktop OpenGL ....................... yes OpenGL ES 2.0 ........................ no OpenGL ES 3.0 ........................ no OpenGL ES 3.1 ........................ no OpenGL ES 3.2 ........................ no Vulkan ................................. no Session Management ..................... yes Features used by QPA backends: evdev .................................. yes libinput ............................... no HiRes wheel support in libinput ........ no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. yes X11 specific: XLib ................................. yes XCB Xlib ............................. yes EGL on X11 ........................... yes xkbcommon-x11 ........................ yes xcb-sm ............................... no QPA backends: DirectFB ............................... no EGLFS .................................. yes EGLFS details: EGLFS OpenWFD ........................ no EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS RCAR ........................... no EGLFS EGLDevice ...................... yes EGLFS GBM ............................ no EGLFS VSP2 ........................... no EGLFS Mali ........................... no EGLFS Raspberry Pi ................... no EGLFS X11 ............................ yes LinuxFB ................................ yes VNC .................................... yes VK_KHR_display ......................... no QNX: lgmon ................................ no IMF .................................. no XCB: Using system-provided xcb-xinput ..... no GL integrations: GLX Plugin ......................... yes XCB GLX .......................... yes EGL-X11 Plugin ..................... yes Windows: Direct 2D ............................ no Direct 2D 1.1 ........................ no DirectWrite .......................... no DirectWrite 3 ........................ no Qt Widgets: GTK+ ................................... no Styles ................................. Fusion Windows Qt Testlib: Tester for item models ................. yes Batch tests ............................ no Qt PrintSupport: CUPS ................................... no Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... no PostgreSQL ............................. no SQLite ................................. yes Using system provided SQLite ......... no Mimer .................................. no Further Image Formats: JasPer ................................. no MNG .................................... no TIFF ................................... yes Using system libtiff ................. no WEBP ................................... yes Using system libwebp ................. no Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML XML http request ................... yes QML Locale ............................. yes QML SSL support ........................ yes Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML XML http request ................... yes QML Locale ............................. yes QML SSL support ........................ yes Qt QML Models: QML list model ......................... yes QML delegate model ..................... yes Qt Quick: AnimatedImage item ..................... yes Canvas item ............................ yes Support for Qt Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes TreeView item .......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes Qt Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes Calendar support ....................... yes Qt Quick Controls 2: Styles ................................. Basic Fusion Imagine Material Universal QtQuick3D: Assimp ................................. yes System Assimp .......................... no Qt Multimedia: Spatial Audio .......................... yes Spatial Audio (Quick3D) ................ yes Low level Audio Backend: ALSA (experimental) .................. no PulseAudio ........................... no MMRenderer ........................... no CoreAudio ............................ no Windows Media SDK .................... no Open SLES (Android) .................. no Web Assembly ......................... no Plugin: GStreamer 1.0 ........................ no FFmpeg ............................... no MMRenderer ........................... no AVFoundation ......................... no Windows Media Foundation ............. no Hardware acceleration and features: Video for Linux ...................... yes VAAPI support ........................ no Linux DMA buffer support ............. yes VideoToolbox ......................... no Qt 3D: Assimp ................................. yes System Assimp .......................... no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes Qt 3D APIs: Vulkan ................................. no Qt 3D Renderers: OpenGL Renderer ........................ yes RHI Renderer ........................... yes Qt3D Geometry Loaders: Autodesk FBX ........................... no Qt 5 Compatibility Libraries: iconv .................................. no Qt Charts Types: Area Chart ............................. yes Line Chart ............................. yes Spline Chart ........................... yes Scatter Chart .......................... yes Bar Chart .............................. yes Pie Chart .............................. yes Boxplot Chart .......................... yes Candlestick Chart ...................... yes Qt Axis Types: DateTime Axis .......................... yes Qt Bluetooth: BlueZ .................................. no BlueZ Low Energy ....................... no Linux Crypto API ....................... no WinRT Bluetooth API .................... no Qt Graphs Support: 2D Graphs .............................. yes 3D Graphs .............................. yes Qt Graphs 3D: Bars3D ................................. yes Scatter3D .............................. yes Surface3D .............................. yes Serial Port: ntddmodm ............................... no Qt Tools: Qt Assistant ........................... yes libclang found ......................... no Clang-based lupdate parser ............. no Qt Designer ............................ yes Qt Distance Field Generator ............ yes Qt Linguist ............................ yes pixeltool .............................. yes qdbus .................................. yes QDoc ................................... no Qt Attributions Scanner ................ yes qtdiag ................................. yes qtplugininfo ........................... yes WebEngine Repository Build Options: Build Ninja ............................ no Build Gn ............................... yes Jumbo Build ............................ yes Developer build ........................ no Build QtWebEngine Modules: Build QtWebEngineCore ................ no Build QtWebEngineWidgets ............. no Build QtWebEngineQuick ............... no Build QtPdf Modules: Build QtPdfWidgets ................... no Build QtPdfQuick ..................... no Optional system libraries: re2 .................................. no icu .................................. no libwebp, libwebpmux and libwebpdemux . no opus ................................. no ffmpeg ............................... no libvpx ............................... no snappy ............................... no glib ................................. no zlib ................................. yes minizip .............................. no libevent ............................. no libxml2 and libxslt .................. no lcms2 ................................ no png .................................. no tiff ................................. no jpeg ................................. no libopenjpeg2 ......................... no harfbuzz ............................. no freetype ............................. no libpci ............................... no Qt Protobuf: Qt Core types support .................. no Qt Gui types support ................... no Well-known types support ............... no Qt Protobuf tools: Qt Protobuf generator .................. no Qt GRPC: gRPC support ........................... yes QML gRPC support ....................... yes Qt GRPC tools: Qt GRPC generator ...................... no Qt Opcua: Open62541 .............................. yes Support for namespace 0 NodeId names ... yes Internal code generator ................ no Open62541 security support ............. yes Support for global discovery server .... yes Data type code generator ............... yes Qt Remote Objects: High Availability Manager (ham) ........ no Qt Scxml: ECMAScript data model for QtScxml ...... yes Qt Sensors: sensorfw ............................... no sensorfw_enabled_with_cmake ............ no Qt SerialBus: Socket CAN ............................. yes Socket CAN FD .......................... yes SerialPort Support ..................... yes Qt TextToSpeech: Flite .................................. no Flite with ALSA ........................ no Speech Dispatcher ...................... no Qt Virtualkeyboard: Desktop integration .................... yes Built-in layouts ....................... yes Key navigation ......................... no Retro style as default ................. no Sensitive Debug ........................ no Cerence ................................ no Static Linking ....................... no Handwriting .......................... no Alphabetic ......................... no CJK ................................ no XT9 .................................. no XT9 Debug .......................... no XT9 9-key layouts .................. no Bundle resources ..................... no Handwriting ........................ no XT9 ................................ no Hunspell ............................... no Using Hunspell copy from 3rdparty/ ... no OpenWnn ................................ yes MyScript ............................... no Example HWR ............................ no Language support enabled for: Arabic ............................... yes Bulgarian ............................ yes Czech ................................ yes Danish ............................... yes German ............................... yes Greek ................................ yes English GB ........................... yes English US ........................... yes Spanish .............................. yes Spanish Mexico ....................... yes Estonian ............................. yes Farsi ................................ yes Finnish .............................. yes French Canada ........................ yes French France ........................ yes Hebrew ............................... yes Hindi ................................ yes Croatian ............................. yes Hungarian ............................ yes Indonesian ........................... yes Italian .............................. yes Japanese ............................. yes Korean ............................... yes Malay ................................ yes Norwegian ............................ yes Dutch ................................ yes Polish ............................... yes Portuguese Brazil .................... yes Portuguese Portugal .................. yes Romanian ............................. yes Russian .............................. yes Slovak ............................... yes Slovenian ............................ yes Albanian ............................. yes Serbian .............................. yes Swedish .............................. yes Thai ................................. yes Turkish .............................. yes Ukrainian ............................ yes Vietnamese ........................... yes Simplified Chinese ................... yes Traditional Chinese .................. yes HongKong Chinese ..................... no Traditional chinese input methods: Zhuyin ............................... yes Cangjie .............................. yes Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing. Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available. WARNING: No backend for low level audio found. WARNING: QDoc will not be compiled, probably because clang's C and C++ libraries could not be located. This means that you cannot build the Qt documentation. You may need to set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation. Other than clang's libraries, you may need to install another package, such as clang itself, to provide the ClangConfig.cmake file needed to detect your libraries. Once this file is in place, the configure script may be able to detect your system-installed libraries without further environment variables. On macOS, you can use Homebrew's llvm package. You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check. WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found. You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check. WARNING: QtWebEngine won't be built. node.js version 14 or later is required. WARNING: QtPdf won't be built. node.js version 14 or later is required. WARNING: SensorFW support currently not enabled with cmake
@QT-static-prgm said in Get back old Qt 5 getOpenFIleName widget in Qt6:
Qt Widgets:
GTK+ ................................... noYou should look into config.log file to see why the status is "no"
-
@Christian-Ehrlicher
i downloaded the latest 6.7.0 now and will try with a clean build from source.Here is the config summary. Do you already see any issues?
I will update you if it works now once qt is builtBuilding for: linux-g++ (x86_64, CPU features: ) Compiler: gcc 11.4.0 Build options: Mode ................................... debug and release Optimize debug build ................... yes Optimize release build for size ........ no Fully optimize release builds (-O3) .... no Building shared libraries .............. yes Using ccache ........................... no Unity Build ............................ no Using new DTAGS ........................ yes Generating GDB index ................... no Relocatable ............................ yes Using precompiled headers .............. yes Using Link Time Optimization (LTCG) .... no Using Intel CET ........................ yes Target compiler supports: x86 Intrinsics ....................... Basic VAES AVX512VBMI2 Sanitizers: Addresses ............................ no Threads .............................. no Memory ............................... no Fuzzer (instrumentation only) ........ no Undefined ............................ no Build parts ............................ libs tools Install examples sources ............... no Qt modules and options: Qt Concurrent .......................... yes Qt D-Bus ............................... yes Qt D-Bus directly linked to libdbus .... no Qt Gui ................................. yes Qt Network ............................. yes Qt PrintSupport ........................ yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... yes Using vcpkg ............................ no udev ................................... no OpenSSL ................................ yes Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no OpenSSL 3.0 ............................ yes Using system zlib ...................... yes Zstandard support ...................... no Thread support ......................... yes Common build options: Linker can resolve circular dependencies yes Qt Core: backtrace .............................. yes DoubleConversion ....................... yes Using system DoubleConversion ........ no CLONE_PIDFD support in forkfd .......... yes GLib ................................... no ICU .................................... yes Using system libb2 ..................... no Built-in copy of the MIME database ..... yes Application permissions ................ yes Defaulting legacy IPC to POSIX ......... no Tracing backend ........................ <none> OpenSSL based cryptographic hash ....... no Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... no Qt Sql: SQL item models ........................ yes Qt Network: getifaddrs() ........................... no IPv6 ifname ............................ no libproxy ............................... no Linux AF_NETLINK ....................... yes DTLS ................................... yes OCSP-stapling .......................... yes SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Brotli Decompression Support ........... no qIsEffectiveTLD() ...................... yes Built-in publicsuffix database ....... yes System publicsuffix database ......... yes Core tools: Android deployment tool ................ yes macOS deployment tool .................. no Windows deployment tool ................ no qmake .................................. yes Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ no HarfBuzz ............................... yes Using system HarfBuzz ................ no Fontconfig ............................. no Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... no PNG .................................. yes Using system libpng ................ no Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... yes OpenVG ................................. no OpenGL: Desktop OpenGL ....................... yes OpenGL ES 2.0 ........................ no OpenGL ES 3.0 ........................ no OpenGL ES 3.1 ........................ no OpenGL ES 3.2 ........................ no Vulkan ................................. no Session Management ..................... yes Features used by QPA backends: evdev .................................. yes libinput ............................... no HiRes wheel support in libinput ........ no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. yes X11 specific: XLib ................................. yes XCB Xlib ............................. yes EGL on X11 ........................... yes xkbcommon-x11 ........................ yes xcb-sm ............................... no QPA backends: DirectFB ............................... no EGLFS .................................. yes EGLFS details: EGLFS OpenWFD ........................ no EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS RCAR ........................... no EGLFS EGLDevice ...................... yes EGLFS GBM ............................ no EGLFS VSP2 ........................... no EGLFS Mali ........................... no EGLFS Raspberry Pi ................... no EGLFS X11 ............................ yes LinuxFB ................................ yes VNC .................................... yes VK_KHR_display ......................... no QNX: lgmon ................................ no IMF .................................. no XCB: Using system-provided xcb-xinput ..... no GL integrations: GLX Plugin ......................... yes XCB GLX .......................... yes EGL-X11 Plugin ..................... yes Windows: Direct 2D ............................ no Direct 2D 1.1 ........................ no DirectWrite .......................... no DirectWrite 3 ........................ no Qt Widgets: GTK+ ................................... no Styles ................................. Fusion Windows Qt Testlib: Tester for item models ................. yes Batch tests ............................ no Qt PrintSupport: CUPS ................................... no Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... no PostgreSQL ............................. no SQLite ................................. yes Using system provided SQLite ......... no Mimer .................................. no Further Image Formats: JasPer ................................. no MNG .................................... no TIFF ................................... yes Using system libtiff ................. no WEBP ................................... yes Using system libwebp ................. no Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML XML http request ................... yes QML Locale ............................. yes QML SSL support ........................ yes Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML XML http request ................... yes QML Locale ............................. yes QML SSL support ........................ yes Qt QML Models: QML list model ......................... yes QML delegate model ..................... yes Qt Quick: AnimatedImage item ..................... yes Canvas item ............................ yes Support for Qt Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes TreeView item .......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes Qt Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes Calendar support ....................... yes Qt Quick Controls 2: Styles ................................. Basic Fusion Imagine Material Universal QtQuick3D: Assimp ................................. yes System Assimp .......................... no Qt Multimedia: Spatial Audio .......................... yes Spatial Audio (Quick3D) ................ yes Low level Audio Backend: ALSA (experimental) .................. no PulseAudio ........................... no MMRenderer ........................... no CoreAudio ............................ no Windows Media SDK .................... no Open SLES (Android) .................. no Web Assembly ......................... no Plugin: GStreamer 1.0 ........................ no FFmpeg ............................... no MMRenderer ........................... no AVFoundation ......................... no Windows Media Foundation ............. no Hardware acceleration and features: Video for Linux ...................... yes VAAPI support ........................ no Linux DMA buffer support ............. yes VideoToolbox ......................... no Qt 3D: Assimp ................................. yes System Assimp .......................... no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes Qt 3D APIs: Vulkan ................................. no Qt 3D Renderers: OpenGL Renderer ........................ yes RHI Renderer ........................... yes Qt3D Geometry Loaders: Autodesk FBX ........................... no Qt 5 Compatibility Libraries: iconv .................................. no Qt Charts Types: Area Chart ............................. yes Line Chart ............................. yes Spline Chart ........................... yes Scatter Chart .......................... yes Bar Chart .............................. yes Pie Chart .............................. yes Boxplot Chart .......................... yes Candlestick Chart ...................... yes Qt Axis Types: DateTime Axis .......................... yes Qt Bluetooth: BlueZ .................................. no BlueZ Low Energy ....................... no Linux Crypto API ....................... no WinRT Bluetooth API .................... no Qt Graphs Support: 2D Graphs .............................. yes 3D Graphs .............................. yes Qt Graphs 3D: Bars3D ................................. yes Scatter3D .............................. yes Surface3D .............................. yes Serial Port: ntddmodm ............................... no Qt Tools: Qt Assistant ........................... yes libclang found ......................... no Clang-based lupdate parser ............. no Qt Designer ............................ yes Qt Distance Field Generator ............ yes Qt Linguist ............................ yes pixeltool .............................. yes qdbus .................................. yes QDoc ................................... no Qt Attributions Scanner ................ yes qtdiag ................................. yes qtplugininfo ........................... yes WebEngine Repository Build Options: Build Ninja ............................ no Build Gn ............................... yes Jumbo Build ............................ yes Developer build ........................ no Build QtWebEngine Modules: Build QtWebEngineCore ................ no Build QtWebEngineWidgets ............. no Build QtWebEngineQuick ............... no Build QtPdf Modules: Build QtPdfWidgets ................... no Build QtPdfQuick ..................... no Optional system libraries: re2 .................................. no icu .................................. no libwebp, libwebpmux and libwebpdemux . no opus ................................. no ffmpeg ............................... no libvpx ............................... no snappy ............................... no glib ................................. no zlib ................................. yes minizip .............................. no libevent ............................. no libxml2 and libxslt .................. no lcms2 ................................ no png .................................. no tiff ................................. no jpeg ................................. no libopenjpeg2 ......................... no harfbuzz ............................. no freetype ............................. no libpci ............................... no Qt Protobuf: Qt Core types support .................. no Qt Gui types support ................... no Well-known types support ............... no Qt Protobuf tools: Qt Protobuf generator .................. no Qt GRPC: gRPC support ........................... yes QML gRPC support ....................... yes Qt GRPC tools: Qt GRPC generator ...................... no Qt Opcua: Open62541 .............................. yes Support for namespace 0 NodeId names ... yes Internal code generator ................ no Open62541 security support ............. yes Support for global discovery server .... yes Data type code generator ............... yes Qt Remote Objects: High Availability Manager (ham) ........ no Qt Scxml: ECMAScript data model for QtScxml ...... yes Qt Sensors: sensorfw ............................... no sensorfw_enabled_with_cmake ............ no Qt SerialBus: Socket CAN ............................. yes Socket CAN FD .......................... yes SerialPort Support ..................... yes Qt TextToSpeech: Flite .................................. no Flite with ALSA ........................ no Speech Dispatcher ...................... no Qt Virtualkeyboard: Desktop integration .................... yes Built-in layouts ....................... yes Key navigation ......................... no Retro style as default ................. no Sensitive Debug ........................ no Cerence ................................ no Static Linking ....................... no Handwriting .......................... no Alphabetic ......................... no CJK ................................ no XT9 .................................. no XT9 Debug .......................... no XT9 9-key layouts .................. no Bundle resources ..................... no Handwriting ........................ no XT9 ................................ no Hunspell ............................... no Using Hunspell copy from 3rdparty/ ... no OpenWnn ................................ yes MyScript ............................... no Example HWR ............................ no Language support enabled for: Arabic ............................... yes Bulgarian ............................ yes Czech ................................ yes Danish ............................... yes German ............................... yes Greek ................................ yes English GB ........................... yes English US ........................... yes Spanish .............................. yes Spanish Mexico ....................... yes Estonian ............................. yes Farsi ................................ yes Finnish .............................. yes French Canada ........................ yes French France ........................ yes Hebrew ............................... yes Hindi ................................ yes Croatian ............................. yes Hungarian ............................ yes Indonesian ........................... yes Italian .............................. yes Japanese ............................. yes Korean ............................... yes Malay ................................ yes Norwegian ............................ yes Dutch ................................ yes Polish ............................... yes Portuguese Brazil .................... yes Portuguese Portugal .................. yes Romanian ............................. yes Russian .............................. yes Slovak ............................... yes Slovenian ............................ yes Albanian ............................. yes Serbian .............................. yes Swedish .............................. yes Thai ................................. yes Turkish .............................. yes Ukrainian ............................ yes Vietnamese ........................... yes Simplified Chinese ................... yes Traditional Chinese .................. yes HongKong Chinese ..................... no Traditional chinese input methods: Zhuyin ............................... yes Cangjie .............................. yes Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing. Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available. WARNING: No backend for low level audio found. WARNING: QDoc will not be compiled, probably because clang's C and C++ libraries could not be located. This means that you cannot build the Qt documentation. You may need to set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation. Other than clang's libraries, you may need to install another package, such as clang itself, to provide the ClangConfig.cmake file needed to detect your libraries. Once this file is in place, the configure script may be able to detect your system-installed libraries without further environment variables. On macOS, you can use Homebrew's llvm package. You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check. WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found. You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check. WARNING: QtWebEngine won't be built. node.js version 14 or later is required. WARNING: QtPdf won't be built. node.js version 14 or later is required. WARNING: SensorFW support currently not enabled with cmake
@QT-static-prgm said in Get back old Qt 5 getOpenFIleName widget in Qt6:
Do you already see any issues?
Did you read what I wrote? Then look what the output for gtk is... Really that hard?
-
@QT-static-prgm said in Get back old Qt 5 getOpenFIleName widget in Qt6:
Do you already see any issues?
Did you read what I wrote? Then look what the output for gtk is... Really that hard?
@Christian-Ehrlicher @jsulm the issue were missing packages. After i installed libglib2.0-dev and libgtk-3-dev it worked to build Qt qith gtk. Appeared that i had an old version (gtk2.0) that did not automatically updated to 3.0 with nala install update.
Just one thing that you might also have a hint for me where to find the root cause. The contrast of the window is now very low.
This is with the new Qt build. The boarder has no shadow and you cannot really tell where the window ends.
with the old qt build with missing gtk it's more clear
it's the same code, just qt kit changed.
-
@Christian-Ehrlicher @jsulm the issue were missing packages. After i installed libglib2.0-dev and libgtk-3-dev it worked to build Qt qith gtk. Appeared that i had an old version (gtk2.0) that did not automatically updated to 3.0 with nala install update.
Just one thing that you might also have a hint for me where to find the root cause. The contrast of the window is now very low.
This is with the new Qt build. The boarder has no shadow and you cannot really tell where the window ends.
with the old qt build with missing gtk it's more clear
it's the same code, just qt kit changed.
Update:
i changed the IDE theme from flat to classic and back to flat and now the issue is gone. No clue, why.Thank you for your support
-
Q QT-static-prgm has marked this topic as solved on