I'm learning Qt and my last move was to put all the (supported) styling stuff in qss files. I have this class (python):
def __init__(self, desktop):
super(MainWindow, self).__init__()
class MainWindow(QtGui.QMainWindow):
def __init__(self, desktop):
super(MainWindow, self).__init__()
To copy to clipboard, switch view to plain text mode
Searching on the qstylesheet syntax page I found that it's possible to set some properties using qss files. Then, i did this:
qproperty-maximized: true;
}
QMainWindow {
qproperty-maximized: true;
}
To copy to clipboard, switch view to plain text mode
But I get the following message: cannot design property named "maximized"
I guess this occurs because the docs state that it's a const value, but then... Are there any means of setting the main window as maximized using qss files? Do I have to modify the element selector to deal with property inheritance from QWidget?
Bookmarks