Skip to content
This repository has been archived by the owner. It is now read-only.

Incorrect spinboxes height with Qt 6.8.1 if application stylesheet present #14

Open
AlienCowEatCake opened this issue Dec 27, 2024 · 0 comments

Comments

@AlienCowEatCake
Copy link

Hello!
I found that all spinboxes was squashed after Qt 6.8.1 update. It reproduces only if application has stylesheet even if it is empty. Height was correct with Qt 6.8.0. Breaking commit in qtbase is 168f4aee268186f12f081ba962c6a25521556018 (QTBUG-130642).
I'm not sure that it is qt6gtk2 bug, but I can't reproduce it with other styles. Maybe something is wrong in QGtkStyle::sizeFromContents

Sample code:

#include <QApplication>
#include <QInputDialog>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    a.setStyleSheet(" ");
    QInputDialog::getInt(nullptr, "t", "l");
    return 0;
}

Qt 6.8.0 result:
6 8 0

Qt 6.8.1 result:
6 8 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant