Hi. I've gotta question. How can I build (not launch) program in plastique style?
Hi. I've gotta question. How can I build (not launch) program in plastique style?
You can't "build" an application in particular style. You can just use QApplication::setStyle() to force a style in your application.
Can I do it in designer? If not, how can I set style to application which code was created by designer?
As I said - use QApplication::setStyle in your code (for example in main()) and make sure you do it before creating QApplication instance so that the user can override your choice by using the -style switch.
Hmm...I don't understand...How can I do it in my case? My main.cpp file:
Qt Code:
#include <QApplication> #include "maker.h" int main(int argc, char *argv[]) { MainWindow MainWindow; MainWindow.show(); return app.exec(); }To copy to clipboard, switch view to plain text mode
is that correct?Qt Code:
#include <QApplication> #include "maker.h" int main(int argc, char *argv[]) { MainWindow MainWindow; MainWindow.show(); return app.exec(); }To copy to clipboard, switch view to plain text mode
Yes. Don't forget ; after the line you just added, and aslo include <QPlastiqueStyle>.
Regards
thanks for a tip
I'm sorry, but I just can't resist myself from asking... What are your C++ skills?
I'm just a bit scatterbrained![]()
Bookmarks