hi Please me out
-
I am new to QT. actually,i developed a application. the problem is my application should run in different desktop.so, for that i want to set auto resize the GUI based on Desktop screen size. Is there any function in QT to auto resize the GUI? Thanks in Advance!!!
-
I am new to QT. actually,i developed a application. the problem is my application should run in different desktop.so, for that i want to set auto resize the GUI based on Desktop screen size. Is there any function in QT to auto resize the GUI? Thanks in Advance!!!
@Mantu said in hi Please me out:
Is there any function in QT to auto resize the GUI?
Yes, see https://doc.qt.io/qt-6/layout.html
And please write meaningful titles. -
I am new to QT. actually,i developed a application. the problem is my application should run in different desktop.so, for that i want to set auto resize the GUI based on Desktop screen size. Is there any function in QT to auto resize the GUI? Thanks in Advance!!!
@Mantu
for full screen:
QRect rec = QGuiApplication::screens().at( 0 )->geometry();
your_window->resize( QSize( rec.width(), rec.height() ) );
If it is what you need, it still can not solve your issue while you may need to scale other widgets. And this can be tricky.