Aladdina
30th March 2009, 14:02
Hi,
I'm new to Qt and have a problem with my first Qt application.
Steps to recreate on Windows Vista (fairly simple):
1. Start Qt Designer and create a mainwindow ui, add a push button to main widget "centralWidget"
2. Change the stylesheet of either "MainWindow" or "centralWidget" from Property Editor, and set it's background to white: background-color: rgb(255, 255, 255);
Issues: the button on the widget doesn't render as expected, please refer to the images below. The image on left side is a default preview result, and it's a Vista Style button. The one on right side is the result with white background and it's a very old windows style.
http://www.qtforum.org/index.php?page=Attachment&attachmentID=2017&h=61cec0c41a0cca36d6118f6b83790f1598fda8a8http://www.qtforum.org/index.php?page=Attachment&attachmentID=2018&h=32c846cf835b7fd77fc2edf5541a68416ad79aa3
Thanks
I'm new to Qt and have a problem with my first Qt application.
Steps to recreate on Windows Vista (fairly simple):
1. Start Qt Designer and create a mainwindow ui, add a push button to main widget "centralWidget"
2. Change the stylesheet of either "MainWindow" or "centralWidget" from Property Editor, and set it's background to white: background-color: rgb(255, 255, 255);
Issues: the button on the widget doesn't render as expected, please refer to the images below. The image on left side is a default preview result, and it's a Vista Style button. The one on right side is the result with white background and it's a very old windows style.
http://www.qtforum.org/index.php?page=Attachment&attachmentID=2017&h=61cec0c41a0cca36d6118f6b83790f1598fda8a8http://www.qtforum.org/index.php?page=Attachment&attachmentID=2018&h=32c846cf835b7fd77fc2edf5541a68416ad79aa3
Thanks