Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

main.cpp + mainwindow.ui = ??

$
0
0
i just need to know, is it possible to “.show()” my work in .ui and .cpp files in 1 window?? for example: #include "mainwindow.h" #include <QApplication> #include <QLabel>   int main(int argc, char *argv[]) {     QApplication a(argc, argv);     QLabel lbl("123");     MainWindow w;     w.show();     lbl.show();       return a.exec(); } (i added 2nd label in .UI file) 1. can i display both of labels in 1 window? 2. can i work (for exmpl, resize) 2nd lable by codding manually?

Viewing all articles
Browse latest Browse all 13965

Trending Articles