Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What to do about OS forcing window lower that it's minimum width?
Forum Updated to NodeBB v4.3 + New Features

What to do about OS forcing window lower that it's minimum width?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 704 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Leon
    wrote on last edited by
    #1

    The only think i could think was
    @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
    ":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.....
    Ubuntu 13.04..

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Leon
      wrote on last edited by
      #2

      bug reported
      "https://bugreports.qt-project.org/browse/QTBUG-33035":https://bugreports.qt-project.org/browse/QTBUG-33035

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved