QT designer screen size



  • Hi guys,

    new to this forum and trying to create a UI for an application for my shop
    little python experience but focussing on the UI side of things at the mo

    i have a main window with my logo on the top left of the window and some text on the far right
    but when i preview the application window,the text on the far right is in the middle of the screen.
    i changed a setting on the main window to 1366x768 and now it displays ok...but this is very cumbersome to work within designer...does it matter? can i just design everything in a smaller window then stretch it out using some code or other technique.

    lastly,is this the right place to ask QT designer questions? or is there another category for this subject.

    lastly,lastly... should i be using QT creator...or is designer a better choice?

    thanks
    yfnn


  • Qt Champions 2016

    hi and welcome.
    It sounds like you are going to use python ?

    --can i just design everything in a smaller window then stretch it out using some code or other technique.
    yes, if you design using layouts, then it can auto adjust most elements.
    http://doc.qt.io/qt-5.5/designer-layouts.html
    It takes a little time to learn to use them.

    --lastly,is this the right place to ask QT designer questions? or is there another category for this subject.
    this is user forum so all question regarding qt is fine.
    however there is a tools forum
    https://forum.qt.io/category/13/tools

    -lastly,lastly... should i be using QT creator...or is designer a better choice?
    Not sure what you mean here.
    You can create all in code, or use the designer part in Qreator to make screen using UI files.
    I really like the visual design but doing it purely in code is also an option.
    Also even if you use designer , you can still use code/ mix both ways.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    The designer plugin from Qt Creator is using the same base as Designer so you don't really need to change on for the other. As for your question, if you make use of layouts you can design your widgets without size constraints. If you really need to position some widgets by hand, then I'd recommend doing it directly in code.

    Yes, it's the right place for Designer related question.

    On a side note, it's Qt. QT stands for Apple QuickTime.



  • duly noted qt champ...wow quick replies...thanks for the help
    is there a way to space out say 4 buttons in a layout...was trying....but seemed
    to stretch my buttons out

    thanks for replies!!!!!


  • Lifetime Qt Champion

    Do you mean have the button evenly spaced ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.