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

It is possible to drag fixed size window with Qt::CustomizeWindowHint flag

XMLWordPrintable

      Next code creates window with thin border and fixed size:

       
      #include <QtGui/QApplication>
      #include <QWidget>
      
      int main( int argc, char *argv[] )
      {
          QApplication a(argc, argv);
          QWidget w;
          w.setWindowFlags( Qt::Window | Qt::CustomizeWindowHint );
          w.setFixedSize( 300, 200 );
          w.show();
          return a.exec();
      }
      

      This window is without title bar, but is is draggable by the top border. Window without title bar, should not be dragable.

      Note that such windows without fixed size working OK - dragging will change window size, as expected.

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

            Unassigned Unassigned
            sazonov Dmitry Sazonov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes