Results 1 to 7 of 7

Thread: Problem with showMaximized()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Problem with showMaximized()

    Quote Originally Posted by jpn View Post
    Have you changed default size policies?
    No, nothing. I use the Designer and just drag and drop a label to the widget.
    I figured out, that if I don't apply a layout to the widget, the window is shown maximized. If I chose any layout, the window is shrinking.

    Lykurg

    Edit: Also if I code by hand same result:
    Qt Code:
    1. window_startscreen::window_startscreen ( QWidget *parent )
    2. : QWidget ( parent )
    3. {
    4. QLabel * img = new QLabel;
    5. img->setPixmap ( QPixmap ( ":/sokrates_600" ) );
    6.  
    7. QHBoxLayout *layout = new QHBoxLayout;
    8. layout->addWidget ( img );
    9. setLayout ( layout );
    10. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by Lykurg; 8th July 2007 at 18:38.

Similar Threads

  1. [QMYSQL] connection problem
    By chaos_theory in forum Installation and Deployment
    Replies: 5
    Last Post: 2nd July 2007, 10:52
  2. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 13:54
  3. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 15:08
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 22:36
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

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
  •  
Qt is a trademark of The Qt Company.