Bug 515548 - [Qt6] Unable to select a font in Font Family droplist of Text Properties docker
Summary: [Qt6] Unable to select a font in Font Family droplist of Text Properties docker
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (other bugs)
Version First Reported In: 6.0.0-beta1
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: qt6
: 515907 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-02-05 13:59 UTC by Dakerdusia
Modified: 2026-04-09 01:29 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of Krita drop down menu (235.94 KB, image/png)
2026-02-05 13:59 UTC, Dakerdusia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dakerdusia 2026-02-05 13:59:18 UTC
Created attachment 189240 [details]
Screenshot of Krita drop down menu

Greetings,
I would like to report an issue regarding the New Text Tool

SUMMARY: The first issue is regarding to the Text Tool's drop down menu, the one to choose a font. No matter where clicked, it doesn't work. The only way to select a font is to manually type in its full name.

STEPS TO REPRODUCE:
1.  Select Text Tool.
2.  Write anything down.
3.  Open the Text Properties docker and click to choose the font.

OBSERVED RESULT: Unable to click any of the fonts. 

EXPECTED RESULT: Clicked font is applied to the text.

SOFTWARE/OS VERSIONS
Windows: 10 Pro
macOS: N/A
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: N/A
KDE Plasma Version: N/A
KDE Frameworks Version: N/A
Qt Version: N/A

ADDITIONAL INFORMATION:
I attached a screenshot, maybe it can help somehow.
If it also helps, my others specs are:
Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz   3.70 GHz
RAM	16,0 GB
NVIDIA GeForce GTX 1660 (6 GB)
64-bit
Tablet: XP-Pen Artist 13.3 (NOT PRO)

Best Regards.
Comment 1 wolthera 2026-02-05 14:41:08 UTC
Thanks!

This is one I cannot reproduce. Does it also happen with Krita 5.3? Because that could help narrow it down.
Comment 2 Dakerdusia 2026-02-05 15:24:07 UTC
(In reply to wolthera from comment #1)
> Thanks!
> 
> This is one I cannot reproduce. Does it also happen with Krita 5.3? Because
> that could help narrow it down.

I do not have Krita 5.3 so I won't be able to help, I'm sorry. I'm not sure if I can downgrade from 6.0.0beta1 to 5.3, will it require a complete reinstall?
Comment 3 Freya Lupen 2026-02-06 01:23:55 UTC
You should be able to use the portable zip version of 5.3.0-beta1 alongside 6.0.0-beta1.

However, I can reproduce this on 6.0.0-beta1 on macOS and Linux. It works fine on 5.3.0-beta1.

There are some (repeated) warnings when scrolling the font list which might be related:
> qrc:/qt/qml/org/krita/components/FontFamilyDelegate.qml:236: TypeError: Value is null and could not be converted to an object
> qrc:/qt/qml/org/krita/components/ResourceDelegateBase.qml:39: TypeError: Cannot read property 'modelWrapper' of null
> qrc:/qt/qml/org/krita/components/ResourceDelegateBase.qml:33: TypeError: Cannot read property 'highlightedIndex' of null
> qrc:/qt/qml/org/krita/components/ResourceDelegateBase.qml:41: TypeError: Cannot read property 'palette' of null
> qrc:/FontResourceDropdown.qml:17:9: Unable to assign ResourceView_QMLTYPE_10 to ResourceView_QMLTYPE_10

It also works fine in a 6.0.0-prealpha-81586693 from October 24, so it's a relatively recent regression.
Comment 4 Freya Lupen 2026-02-12 15:14:53 UTC
*** Bug 515907 has been marked as a duplicate of this bug. ***
Comment 5 Luna 2026-02-18 19:33:28 UTC
This issue only seems to happen if you create a text object firs,t. If you interact with the font selector before creating a text object it will just work, even after creating and interacting with text. So most likely some kind of initialization problem.
Comment 6 Dakerdusia 2026-02-24 20:49:49 UTC
(In reply to Luna from comment #5)
> This issue only seems to happen if you create a text object firs,t. If you
> interact with the font selector before creating a text object it will just
> work, even after creating and interacting with text. So most likely some
> kind of initialization problem.

Yes, You're right. I apologize for late answer, but I checked it too and it works when font is selected before any actual text is written. Still, this is rather uncomfortable to work with. 

I also noticed, that it works for a short while after writing text and then breaks. I picked a font, wrote a word, attempted to change it and it worked for a few seconds, then it suddenly stopped working.
Comment 7 Tyson Tan 2026-03-04 07:23:28 UTC
This also happened to me with Qt6 version. Qt5 works fine.
Tested with krita-6.1.0-prealpha-f77c162afd-x86_64.appimage (2026-03-04)

I cannot highlight an item in this droplist no matter what I do (mouse/stylus/arrow key).
It can scroll by pressing the arrow keys multiple times, but that's it.
Comment 8 Tyson Tan 2026-03-04 07:34:48 UTC
This is not the case for me, when I ran into this issue today.
Even when I tried to select a font with an empty canvas, I cannot either highlight or click anything in that droplist.
It seems to be completely broken now.

Tested with krita-6.1.0-prealpha-f77c162afd-x86_64.appimage (2026-03-04)

(In reply to Luna from comment #5)
> This issue only seems to happen if you create a text object firs,t. If you
> interact with the font selector before creating a text object it will just
> work, even after creating and interacting with text. So most likely some
> kind of initialization problem.
Comment 9 dra.w.p.il.e+bugskde 2026-03-27 03:56:55 UTC
*** Bug 518192 has been marked as a duplicate of this bug. ***
Comment 10 Antonio Rojas 2026-03-29 07:56:30 UTC
*** Bug 518282 has been marked as a duplicate of this bug. ***
Comment 11 rinnarii 2026-03-29 09:09:53 UTC
For me, the dropdown list does not appear at all and when I try to manually typing the font name, it does not change in the canvas.

But I am able to successfully change the font one time. And when I tried another change to the font for another text field, it crashed the program when I try to auto complete a font name by pressing Tab. However, I can't replicate this crash again since the shortcut of Show Canvas Only is also bound to the Tab key, if I can replicate that behavior again then I will submit the logs here.

So I downgraded to 5.2.16 for the meantime.

Here are some relevant info I think that might help.
OS: Arch Linux
KDE Plasma Version: 6.6.3
KDE Frameworks Version: 6.24.0
Qt Version: 6.11.0
Krita Version: 6.0.0-2 (installed from pacman)
Comment 12 Bug Janitor Service 2026-04-08 12:49:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2746
Comment 13 wolthera 2026-04-08 14:29:32 UTC
Git commit 4c24e9d9d949e7c4548957565036ba0267f614ba by Wolthera van Hövell, on behalf of Wolthera van Hövell tot Westerflier.
Committed on 08/04/2026 at 14:29.
Pushed by woltherav into branch 'master'.

Try to fix the font selection by fixing qml resource popups.

M  +0    -1    plugins/dockers/textproperties/qml/FontResourceDropdown.qml
M  +0    -1    plugins/dockers/textproperties/qml/TextProperties.qml
M  +0    -1    plugins/tools/svgtexttool/SvgTextToolOptions.qml
M  +1    -0    qmlmodules/components/qml/ResourcePopup.qml
M  +14   -4    qmlmodules/components/qml/ResourceView.qml
M  +4    -7    qmlmodules/components/qml/resourceDelegates/CssStylePresetDelegate.qml
M  +3    -7    qmlmodules/components/qml/resourceDelegates/FontFamilyDelegate.qml
M  +18   -9    qmlmodules/components/qml/resourceDelegates/ResourceDelegateBase.qml

https://invent.kde.org/graphics/krita/-/commit/4c24e9d9d949e7c4548957565036ba0267f614ba
Comment 14 wolthera 2026-04-08 14:30:16 UTC
Git commit bb3a59fe3f33664e4a7a546d43bfdd919ac99a89 by Wolthera van Hövell.
Committed on 08/04/2026 at 14:30.
Pushed by woltherav into branch 'krita/6.0'.

Try to fix the font selection by fixing qml resource popups.


(cherry picked from commit 4c24e9d9d949e7c4548957565036ba0267f614ba)

Co-authored-by: Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>

M  +0    -1    plugins/dockers/textproperties/qml/FontResourceDropdown.qml
M  +0    -1    plugins/dockers/textproperties/qml/TextProperties.qml
M  +0    -1    plugins/tools/svgtexttool/SvgTextToolOptions.qml
M  +1    -0    qmlmodules/components/qml/ResourcePopup.qml
M  +14   -4    qmlmodules/components/qml/ResourceView.qml
M  +4    -7    qmlmodules/components/qml/resourceDelegates/CssStylePresetDelegate.qml
M  +3    -7    qmlmodules/components/qml/resourceDelegates/FontFamilyDelegate.qml
M  +18   -9    qmlmodules/components/qml/resourceDelegates/ResourceDelegateBase.qml

https://invent.kde.org/graphics/krita/-/commit/bb3a59fe3f33664e4a7a546d43bfdd919ac99a89
Comment 15 Tyson Tan 2026-04-09 01:29:26 UTC
Thank you, Wolthera! :)