Is there any other way to make my Ui resolution independent. Right now i am using my own function to do so
and i am multiplying the controlls by this factorQDesktopWidget *mydesk = new QDesktopWidget() ;
double width = mydesk->width();
double hight = mydesk->height();
X_resolution = width/1600;
Y_resolution = hight/900;
Is there some other way to do so ??ui->SRP_labelY_8->setGeometry(static_cast<int>(ui->SRP_labelY_8->pos().x()*X_resolution), static_cast<int>(ui->SRP_labelY_8->pos().y()*Y_resolution), static_cast<int>(ui->SRP_labelY_8->size().width()*X_resolution), static_cast<int>(ui->SRP_labelY_8->size().height()*Y_resolution));
Bookmarks