⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)
CommandLink Button and custom style
HarryCodder last edited by
I'm new to QT and I have to draw a command link button with a custom style.
My problem is QCommandLinkButton does not go through the QProxyStyle::drawControl method to draw its label and icon, it goes directly to QProxyStyle::drawItemText.
QPushButton for instance does not behave like this.
Is this a bug or did I miss something ?
If anyone knows how to bypass/change this behaviour, it would be really helpful.
Thanks in advance.
Hi and welcome
If it dont respond well to stylesheets, cant you just
set it in Designer or via code?
You can change both font and icon so what do you need for your custom style?
Hi and welcome to devnet,
Following the documentation, i'd say it's not a bug. QCommandLinkButton is a Vista styled button.
If you need to customize it even more, why not start from QPushButton directly ?