Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33035

Ubuntu forcing qt applications lower that it's minimum width

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 5.1.0
    • Widgets: Main Window
    • None
    • Ubuntu 13.04

    Description

      The OS can force the mainwindow's width go lower that it's minimum.

      If i try this code:
      void MainWindow::resizeEvent(QResizeEvent *e){
      if(this->width()<this->minimumWidth())
      QTimer::singleShot(1000, this, SLOT(wrong_size_of_window()));
      }

      void MainWindow::wrong_size_of_window()
      {
      this->resize(QSize(this->minimumWidth(),this->height()));
      }

      But this still doesn’t work quite well. Video demonstrating: (the reason i have set the singeshot timer to 1000 is just so you see what the function does.)

      http://www.youtube.com/watch?v=OwE5h82-Pm8&feature=youtu.be

      If in 0:08 the fuction didn’t resized the window, the buttons would be with semi texts, etc…..

      Thread started at qt forums:
      http://qt-project.org/forums/viewthread/31385/

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            leon Leon Vitanos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes