Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Ui size not fit android device



  • Hello, I am currently developing an application for android.
    The mainWindow is setted correctly and fit my smartphone screen, but when I open a new window the lower part of the window is partially covered:
    alt text

    This is how I set the ui in the code and in the designer:

        uiBox->setupUi(this);
        uiBox->label->setText("Devices connected to " + infoBox.name());
        QScreen *screen = QGuiApplication::primaryScreen();
        this->resize(screen->availableSize().width(),screen->availableSize().height());
        this->showFullScreen();
    

    alt text

    Moreover, as you can see from the smartphone screenshot the proportions are not respected.
    How can I solve this problem?
    Thank you for the help.


Log in to reply