Results 1 to 2 of 2

Thread: widget looks different than the desinger when i run it

  1. #1
    Join Date
    Jun 2012
    Posts
    173
    Thanks
    48
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default widget looks different than the desinger when i run it

    I'musing qt creator and using the designer to design my main window...
    but when im using layouts to arrange my different objects (LineEdite , labels..etc ).. it look exatclly as i want it in the designer but we i run it the lineEidte get much smaller ... and also the window size is not in the same size i make it in the designer it is always bigger!!!!



    other thing, Im using Scrollwidget and im dispalying some object on it and layout them all in the scrollwidget .. then i layout the scrollwidget in a groupbox

    all look completely great in the designer but when i run it the scrollwidget shows the scrollbar in the side ... why it that ????? i have it set it with layout to fit exactly in it. so why it display it this way ??

    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: widget looks different than the desinger when i run it

    I think the differences can come from two things. One is that a window gets system decorations that are different in size from the ones Designer uses. The other difference might come from the fact that widgets get real content that can influence their size. Why is that a big issue that you get a slightly different window size than you expected?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 8
    Last Post: 2nd February 2012, 20:52
  2. Replies: 2
    Last Post: 23rd January 2012, 18:06
  3. problem with displaying QGLWidget in QWidget made in desinger
    By yasirsaleem in forum Qt Programming
    Replies: 4
    Last Post: 9th March 2011, 19:46
  4. Custom Widgets in Desinger
    By qtoptus in forum Qt Programming
    Replies: 6
    Last Post: 11th April 2010, 19:47
  5. port qt3 app to desinger 4 ui files
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 27th February 2007, 07:14

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.