Skip to content
Qt 6.11 is out! See what's new in the release blog
  • 0 Votes
    2 Posts
    1k Views
    creativegamer03C
    Update... So I was able to just use the overridden hover event methods to apply the stylesheets as I wanted. But I do feel that there might be a better way to do this. For now, I'll be using this method instead as it works as I wanted.
  • 0 Votes
    6 Posts
    2k Views
    Z
    So here is my findings. Maybe someone can give me a hint Applying any styleSheet on Android shifts Z-order of QMessageBox which makes its buttons unclickable Here what is going on: //setting styleSheet to any widget breaks interactivity on Android setStyleSheet("QPushButton { }"); QMessageBox::information(this,"Check the message", "Is it clickable?" ); //it is not clickable on Android But if we manually set Z-order to the message this message becomes clickable. But further ones ARE NOT setStyleSheet("QPushButton { }"); //applying styleSheet QMessageBox msgBox; msgBox.setText("StyleSheet is set. Z-order fixed"); //set stayOnTop flag and it becomes clickable msgBox.setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint); msgBox.exec(); //Next message is unclickable QMessageBox::information(this,"Check next message", "Is it clickable?" ); //No it is not clickable How to restore correct Z-order for all of my windows and messages after apllying a styleSheet in Android?
  • QToolButton menu-button position

    Unsolved General and Desktop qtoolbutton stylesheets menu button
    1
    1 Votes
    1 Posts
    1k Views
    No one has replied
  • Qt icon theme switch

    Solved General and Desktop qss icon theme stylesheets
    4
    0 Votes
    4 Posts
    7k Views
    SGaistS
    Sorry for the very late reply, would it be possible to have a complete minimal compilable project to be able to test your issue ?