At first the push-pin widget is displayed within another widget (and does paint with the CleanLooks style). Example:
----------------------------
| Main Widget |
| ----------------- | // Both have Clean Looks Style
| | Push-Pin | |
| | Widget | |
| ----------------- |
| |
----------------------------
----------------------------
| Main Widget |
| ----------------- | // Both have Clean Looks Style
| | Push-Pin | |
| | Widget | |
| ----------------- |
| |
----------------------------
To copy to clipboard, switch view to plain text mode
When I run the code shown below, the Push-Pin Widget displays in it's own window (which is what I want), however it no longer uses the CleanLooks style.
Qt::WindowFlags flags = Qt::Window;
flags |= Qt::WindowStaysOnTopHint;
setWindowFlags(flags);
this->setStyle(QStyleFacory::create("cleanlooks"));
setVisible(true);
----------------------------
| Main Widget | // Main Widget has CleanLooks Style
| | -----------------
| | | Push-Pin |
| | | Widget |
| | -----------------
| | // Push-Pin widget does not have CleanLooks
----------------------------
Qt::WindowFlags flags = Qt::Window;
flags |= Qt::WindowStaysOnTopHint;
setWindowFlags(flags);
this->setStyle(QStyleFacory::create("cleanlooks"));
setVisible(true);
----------------------------
| Main Widget | // Main Widget has CleanLooks Style
| | -----------------
| | | Push-Pin |
| | | Widget |
| | -----------------
| | // Push-Pin widget does not have CleanLooks
----------------------------
To copy to clipboard, switch view to plain text mode
My goal is to get the Push-Pin Widget to always use the CleanLooks style.
Hope this clarifies
Bookmarks