qt - Linking in a custom library with custom stylesheets and graphics [SOLVED] -
i have 2 qt projects. first project builds library provides widget main window. second project uses library , creates custom widgets plug , define implementation.
everything works except graphics not showing in second project includes library. widgets show fine, nothing stylesheet displayed.
is there else i'm forgetting do?
for example, i've made frame...
namespace saiwidgets { class saiwidgetsshared_export frame : public qframe { q_object public: explicit frame(qframe* parent = nullptr); frame(qwidget* widget, qframe* parent = nullptr); ~frame(); void addwidget(qwidget* value); protected: virtual void mousemoveevent(qmouseevent *e) override; qvboxlayout layout; }; } and load stylesheet this...
qapplication a(argc, argv); qfile stylefile( %path stylesheet% ); stylefile.open( qfile::readonly ); qstring style( stylefile.readall() ); a.setstylesheet( style ); implementation omitted...
solution: well, solution simple , obvious — apply stylesheet parent window.
Comments
Post a Comment