Results 1 to 3 of 3

Thread: non-decreasing width of the windows

  1. #1
    Join Date
    Oct 2010
    Posts
    21
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default non-decreasing width of the windows

    Hello,

    I am trying to decrease the width of the window. However, the width cannot be smaller than 80 pxl even though the code forces it to be smaller than that value. I make the buttons on the window hidden, but it does not make use.

    Is there a way to be able to implement a window having a small width (about 50 pxl width)?

    Thanks...

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: non-decreasing width of the windows

    can you give a minimal compilable example reproducing the problem?

  3. #3
    Join Date
    Oct 2010
    Posts
    21
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: non-decreasing width of the windows

    Here it is:

    QDialog *w = new QDialog(this);
    w->setGeometry(1025, 200, 20, 254);
    w->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
    w->exec();

    Thanks...

Similar Threads

  1. Replies: 3
    Last Post: 13th May 2010, 08:20
  2. QToolBox width fixed to maximum content width
    By ghorwin in forum Qt Programming
    Replies: 0
    Last Post: 10th July 2009, 09:58
  3. data rate transfer is decreasing in TCP connection
    By navi1084 in forum Qt Programming
    Replies: 3
    Last Post: 19th June 2009, 16:15
  4. How to set QTableView width to width of horizontal header?
    By martinb0820 in forum Qt Programming
    Replies: 0
    Last Post: 2nd December 2008, 20:51
  5. width()
    By mickey in forum Newbie
    Replies: 1
    Last Post: 1st April 2006, 00:34

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.