Qapplication invalid style override gtk passed ignoring it available styles windows fusion

I’m a bit clueless when it comes to Linux and I’m not familiar with ldd, but running it gives me this:

linux-vdso.so.1 =>  (0x00007ffd3f9ac000)
libQt5Widgets.so.5 => /home/user/Qt/Qt5.8.0/5.8/gcc_64/lib/libQt5Widgets.so.5 (0x00007f98012fe000)
libQt5Core.so.5 => /home/user/Qt/Qt5.8.0/5.8/gcc_64/lib/libQt5Core.so.5 (0x00007f9800bde000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9800836000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9800620000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9800257000)
libQt5Gui.so.5 => /home/user/Qt/Qt5.8.0/5.8/gcc_64/lib/libQt5Gui.so.5 (0x00007f97ffabb000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f97ff89e000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f97ff62d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f97ff323000)
libicui18n.so.56 => /home/user/Qt/Qt5.8.0/5.8/gcc_64/lib/libicui18n.so.56 (0x00007f97fee8a000)
libicuuc.so.56 => /home/user/Qt/Qt5.8.0/5.8/gcc_64/lib/libicuuc.so.56 (0x00007f97fead2000)
libicudata.so.56 => /home/user/Qt/Qt5.8.0/5.8/gcc_64/lib/libicudata.so.56 (0x00007f97fd0ee000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f97fceea000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f97fcce2000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f97fcac7000)
libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f97fc8c5000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f97fc5b4000)
/lib64/ld-linux-x86-64.so.2 (0x000055ec2a2d5000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f97fc38a000)
libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f97fc187000)
libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f97fbf83000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f97fbd7c000)
libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f97fbb79000)
libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f97fb94a000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f97fb738000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f97fb535000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f97fb32e000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f97fb12c000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f97fadf2000)
libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f97fabd8000)
libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f97fa9d3000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f97fa7b1000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f97fa5aa000)
libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f97fa39b000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f97fa12a000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f97f9f26000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f97f9d1f000)

Running with QT_DEBUG_PLUGINS set to 1 shows two entries related to libqgtk3, but neither show any errors:

Got keys from plugin meta data ("xcb_glx")
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/xcbglintegrations" ...
loaded library "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platformthemes" ...
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platformthemes/libqgtk3.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("gtk3")
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/platformthemes" ...
loaded library "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platformthemes/libqgtk3.so"
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts" ...
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "compose",
            "xim"
        ]
    },
    "className": "QComposePlatformInputContextPlugin",
    "debug": false,
    "version": 329728
}

The thing that appears to be causing the invalid styles message is that it is looking for a styles subdirectory in the build directory, but that directory doesn’t exist:

QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/styles" ...
QApplication: invalid style override passed, ignoring it.

Here’s the full output with QT_DEBUG_PLUGINS on:

Starting /home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/Test...
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqeglfs.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqminimal.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqminimalegl.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqoffscreen.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqvnc.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqxcb.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/platforms" ...
loaded library "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforms/libqxcb.so"
loaded library "Xcursor"
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/xcbglintegrations" ...
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_egl"
        ]
    },
    "className": "QXcbEglIntegrationPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("xcb_egl")
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_glx"
        ]
    },
    "className": "QXcbGlxIntegrationPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("xcb_glx")
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/xcbglintegrations" ...
loaded library "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platformthemes" ...
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platformthemes/libqgtk3.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("gtk3")
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/platformthemes" ...
loaded library "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platformthemes/libqgtk3.so"
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts" ...
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "compose",
            "xim"
        ]
    },
    "className": "QComposePlatformInputContextPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("compose", "xim")
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "ibus"
        ]
    },
    "className": "QIbusPlatformInputContextPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("ibus")
QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so"
Found metadata in lib /home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "qtvirtualkeyboard"
        ]
    },
    "className": "QVirtualKeyboardPlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("qtvirtualkeyboard")
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/platforminputcontexts" ...
loaded library "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/styles" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/styles" ...
QApplication: invalid style override passed, ignoring it.
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/accessible" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/accessible" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Qt5.8.0/5.8/gcc_64/plugins/accessiblebridge" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Programming/build-Test-Desktop_Qt_5_8_0_GCC_64bit-Debug/accessiblebridge" ...

It’s quite late now, so I best go to bed, but tomorrow I’ll download Fedora and give it a try in that. If that doesn’t work I’ll just keep using 5.6.2.

Edit: I can’t get it to work so I’m using 5.6.2. I’m new to both Qt and inexperienced with Linux so I’m probably not the best person to tackle this problem. I’ll keep an eye on the forum and hopefully somebody else will have the same issue and a resolution will be found.

I noticed that applications built with these bindings use Fusion style by default instead of the native style, so I was trying to set it to GTK manually with this line of code: widgets.QApplication_SetStyle2("GTK"). But when I execute it it only prints this message to stdout: QApplication: invalid style override passed, ignoring it.. When I print the available styles it only shows Windows and Fusion.

I am using Go 1.8.1 and Qt 5.8 on Linux Mint 18 Cinnamon with the Mint-Y-Dark theme.

In my Qt install directory I can see that libqgtk3.so is present in plugins/platformthemes. When I run my application with QT_DEBUG_PLUGINS=1 it also shows that the library is being loaded:

QFactoryLoader::QFactoryLoader() checking directory path "/home/wim/Programs/qt/5.8/gcc_64/plugins/platformthemes" ...
QFactoryLoader::QFactoryLoader() looking at "/home/wim/Programs/qt/5.8/gcc_64/plugins/platformthemes/libqgtk3.so"
Found metadata in lib /home/wim/Programs/qt/5.8/gcc_64/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 329728
}


Got keys from plugin meta data ("gtk3")
QFactoryLoader::QFactoryLoader() checking directory path "/home/wim/Documents/Workspace/go/src/fornax96.me/qt_test/deploy/linux/platformthemes" ...
loaded library "/home/wim/Programs/qt/5.8/gcc_64/plugins/platformthemes/libqgtk3.so"

Even when running the application with -style GTK it still uses Fusion.

Is there any way to make it use the native platform style?

#
3 года, 3 месяца назад

(отредактировано

3 года, 3 месяца назад)

Темы:

53

Сообщения:

841

Участник с: 01 июня 2017

все работало до «вчера»..
и вот

~ $ qbittorrent
QApplication: invalid style override 'gtk2' passed, ignoring it.
        Available styles: qt6gtk2, qt5gtk2, Windows, Fusion
Cannot mix incompatible Qt library (6.2.2) with this library (6.2.3)
Aborted (core dumped)

Я так понимаю, что нужны движения со стороны qt6gtk2..
Удалил и переустановил из aur, не помогло

~ $ cat /etc/environment
QT_QPA_PLATFORMTHEME=qt6gtk2

vs220

#
3 года, 3 месяца назад

Темы:

25

Сообщения:

8524

Участник с: 16 августа 2009

amon
Удалил и переустановил из aur, не помогло

Скорее всего не пересобрали а переставили из кеша, хотя возможно и частичное обновление.

amon

#
3 года, 3 месяца назад

(отредактировано

3 года, 3 месяца назад)

Темы:

53

Сообщения:

841

Участник с: 01 июня 2017

как правильно? — все в tm
кеш….вероятно нет его…все в tmp

vs220

#
3 года, 3 месяца назад

Темы:

25

Сообщения:

8524

Участник с: 16 августа 2009

Чем вы ставили qt6gtk2 ?

amon

#
3 года, 3 месяца назад

Темы:

53

Сообщения:

841

Участник с: 01 июня 2017

yay

vs220

#
3 года, 3 месяца назад

(отредактировано

3 года, 3 месяца назад)

Темы:

25

Сообщения:

8524

Участник с: 16 августа 2009

cat ~/.config/yay/config.json|grep build
#почистить указанную в выводе директорию
yay -Syyu
yay -S --rebuild qt6gtk2 

amon

#
3 года, 3 месяца назад

(отредактировано

3 года, 3 месяца назад)

Темы:

53

Сообщения:

841

Участник с: 01 июня 2017

да, оно, спасибо!
прокоментируйте — два слова…почему не пересобиралось а переустанавливалось из непонятно откуда?build ?
ключевое слово, вероятно, rebuild ?

vs220

#
3 года, 3 месяца назад

(отредактировано

3 года, 3 месяца назад)

Темы:

25

Сообщения:

8524

Участник с: 16 августа 2009

amon
почему не пересобиралось а переустанавливалось из непонятно откуда?

В конфиге yay у вас что прописано, то и делается

cat ~/.config/yay/config.json|grep build

«buildDir» → директория сборки где собирается пакет, если она не чистится то собранный пакет там и остается
«rebuild» «no» или «yes» → пересобирать ли пакет если он есть ( по умолчанию «no» → нет не пересобирать)
версия пакета не изменилась и поставился старый собранный с Qt 6.2.2 пакет

amon

#
3 года, 3 месяца назад

Темы:

53

Сообщения:

841

Участник с: 01 июня 2017

cat ~/.config/yay/config.json
вот это удалил
там пусто…оно когда там что-то появится? или не появится?

amon

#
3 года, 3 месяца назад

Темы:

53

Сообщения:

841

Участник с: 01 июня 2017

vs220
и поставился старый собранный с Qt 6.2.2 пакет

а где он старый?
pacman.conf

CacheDir    = /tmp/pacman/

Topic solved
This topic has been marked as solved and requires no further attention.

0 Members and 1 Guest are viewing this topic.


Hello all,

It seems that with the introduction of qt6, all programs that use qt6 are broken. For me, this includes qsynth, qjackctl, qtractor, and cmake-gui. When running these applications from the shell, this is the error that is printed to me:

QApplication: invalid style override 'gtk' passed, ignoring it.
Available styles: qt6ct-style, Windows, Fusion

Here is what qsynth looks like:

What can I do about fixing this? These applications are all unusable.


Re: Qt6 Gui Broken on Artix runit Mate

Reply #1 –
install qt6ct and set properly your qt6/gtk themes.
https://wiki.archlinux.org/index.php/Qt
for qt6 exist probably no gtk2 support, you need probably install https://aur.archlinux.org/packages/qt6gtk2

Re: Qt6 Gui Broken on Artix runit Mate

Reply #2 –
Okay, I have gone to /etc/environment and commented out QT_STYLE_OVERRIDE and set QT_QPA_PLATFORMTHEME=qt6gtk2 after installing it from the aur. I still have mangled qt6 windows (although now they are the same colors as my system). Is there anywhere else I need to check to unmangle qt6? I would try to play with qt6ct, but it is also mangled like in the image.

As a side issue, setting QT_QPA_PLATFORMTHEME=qt6gtk2 removes qt5’s styling (although this is not a big issue as the applications are still usable).


Re: Qt6 Gui Broken on Artix runit Mate

Reply #3 –
I don’t think some of the developers bothered some dead gtk2. So probably nothing like qt6-styleplugins will be realised.

However, because qt6 is still not ready (certainly not 6.0.x), the situation may improve over time.  however, since it is planned to remove gtk2 (not only from archlinux), gtk2 support by another toolkits will probably not be much better …

did you try QT_QPA_PLATFORMTHEME=qt6ct ?


Re: Qt6 Gui Broken on Artix runit Mate

Reply #4 –
I just tried setting QT_QPA_PLATFORMTHEME=qt6ct. With this, the theme is back to a «stock» qt theme (the very bright white theme), but the gui is still garbled. I think the issue doesn’t have to do with the variables.

Is there a good way to say get rid of qt configs to see if that is causing the issue? Also, does qt6 share configs with qt5 at all?


Re: Qt6 Gui Broken on Artix runit Mate

Reply #5 –

Also, does qt6 share configs with qt5 at all?

good question… i read qt6 API is diferent as qt5 API, so hard to say, what was exactly rewritten. see https://archlinux.org/packages/extra/x86_64/qt6-5compat/ they put old qt5 api’s to on one’s own package


Re: Qt6 Gui Broken on Artix runit Mate

Reply #6 –
Hmmm, I’m a little stumped as to what to do. I will try to see if removing config files will fix the gui, but if anyone else knows any better suggestion, I will gladly take it. Maybe the best thing to do would be reach out to qt6 folks?

Re: Qt6 Gui Broken on Artix runit Mate

Reply #7 –
QT_QPA_PLATFORMTHEME=qt5ct works with qt6ct and  the qt6gtk2 AUR package as below:

kvantum does not seem to be supported yet.


Re: Qt6 Gui Broken on Artix runit Mate

Reply #8 –
That’s good to know for keeping themes across qt5 and qt6.

Unfortunately, it seems my problem is not related to these variables. I’ll keep this in mind, once I fix qt6 to keep theming correct. Currently, this is what qt6ct looks like:

Here is what my environment variables look like in /etc/environment:

QT_QPA_PLATFORMTHEME=qt6gtk2
#QT_QPA_PLATFORMTHEME=gtk2
#QT_STYLE_OVERRIDE=gtk

Re: Qt6 Gui Broken on Artix runit Mate

Reply #9 –

QT_QPA_PLATFORMTHEME=qt6gtk2

Is incorrect, so change it to:

QT_QPA_PLATFORMTHEME=qt5ct

or to:

QT_QPA_PLATFORMTHEME=qt6ct

Re: Qt6 Gui Broken on Artix runit Mate

Reply #10 –
Thank you, I will change the environment variable.

However, I found what the issue was that was causing the broken qt6 problem.

Mate desktop has an auto hidpi scaling feature that was causing certain applications (qt6 and obs) to render incorrectly when using the nvidia card output. To fix it, I used mate-tweak, and adjusted the hidpi from Auto-Detect, to Regular, and it fixed the guis. This also resizes gtk correctly, as for some reason it was slightly smaller.

It was not a qt environment variable at all, but mate was causing it! Thank you all for your help on this and teaching me about qt environment variables!


Re: Qt6 Gui Broken on Artix runit Mate

Reply #11 –

Is incorrect, so change it to:

QT_QPA_PLATFORMTHEME=qt5ct

or to:

QT_QPA_PLATFORMTHEME=qt6ct

Although this is unrelated to the issue, I just wanted to post this from the github page of qt6gtk2. They actually recommend to export that variable, which is where I got it from. It does theme your qt6 applications, so it did work for me:

Add line ‘export QT_QPA_PLATFORMTHEME=qt6gtk2’ to ~/.profile and re-login.
Alternatively, create the file /etc/X11/Xsession.d/100-qt6gtk2 with
the following line:

export QT_QPA_PLATFORMTHEME=qt6gtk2


Re: Qt6 Gui Broken on Artix runit Mate

Reply #12 –
Yup, but on this way, you have to change any theme by hand, and not by qt5ct or qt6ct.

have fun


Re: Qt6 Gui Broken on Artix runit Mate

Reply #13 –
That makes more sense, thanks!

  • Index
  • » Applications & Desktop Environments
  • » [SOLVED] Okteta: can’t open any file

Pages: 1

#1 2020-01-31 18:17:41

xerxes_
Member
Registered: 2018-04-29
Posts: 901

[SOLVED] Okteta: can’t open any file

I can not open any file in okteta hex editor. I open file by menu File > Open or by pressing Ctrl+O, select file and hit enter or mouse click to open and no file is opening. No error is displayed. This is from terminal when opening okteta:

QApplication: invalid style override 'gtk' passed, ignoring it.
	Available styles: bb10dark, bb10bright, cleanlooks, gtk2, cde, motif, plastique, qt5ct-style, Windows, Fusion
Icon theme "breeze-dark" not found.
kf5.kservice.services: KServiceTypeTrader: serviceType "TerminalEmulator" not found

And again, no error in terminal when try to open file.
I use i3 DE.

Last edited by xerxes_ (2020-02-03 19:40:59)

#2 2020-02-03 19:39:44

xerxes_
Member
Registered: 2018-04-29
Posts: 901

Re: [SOLVED] Okteta: can’t open any file

I found 2 things:

1. When I create new file by writing some data or generate data and save file, then I can load it by «file > open previous» menu, but only that file (and not by file > open).

2. I found workaround to open file(s) in okteta by start okteta in terminal and as argument to it place filename (with eventual path to file). That way it can be opened multiple files, all at once.

So it looks like File > Open command is not working at all (dead option), but actually okteta can open files. That solution satisfy me, so I mark thread as solved.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Создать папку c windows syswow64 config systemprofile desktop
  • Windows check hash sum
  • Wallpaper from windows 7
  • Драйвер микрофона для windows 7 ноутбук acer
  • Download windows 10 ltsc 1809