1

Topic: Behavior of a window

Good afternoon, there is standard window QMainWindow. To reduce the size of a window and to make the title, I remove standard by means of a method: setWindowFlags (Qt:: FramelessWindowHint); but it is necessary for me, that already mine title (it turns out QToolBar), behaved the same as title a standard window (at transfer of a window on the top of the screen, the window is uncovered completely; at window relocation to the left and to the right, the system suggests to tear a window on half). How it to achieve where to dig?

2

Re: Behavior of a window

Hello, arfaa, you wrote: A> Good afternoon, there is standard window QMainWindow. To reduce the size of a window and to make the title, I remove standard by means of a method: A> A> setWindowFlags (Qt:: FramelessWindowHint); A> A>, but it is necessary for me, that already mine title (it turns out QToolBar), behaved the same as title a standard window (at transfer of a window on the top of the screen, the window is uncovered completely; at window relocation to the left and to the right, the system suggests to tear a window on half). How it to achieve where to dig? Normally all , qualitative box decisions yet did not come across to me. Define cliques on your title if it was - that on mouse driving drag all window through ` move `. For Windows it is possible through sending SendMessage with WM_SYSCOMMAND + SC_MOVE to achieve such behavior. Concerning automatic deployment of a window I will tell nothing, if at whom is  - share, too it is interesting to me

3

Re: Behavior of a window

Hello, SaZ, you wrote: SaZ> Concerning automatic deployment of a window I will tell nothing, if at whom is  - share, Yes, here all too is interesting to me . On "pure" Qt does not quit, it is necessary WinAPI to saw. The feature is called "aerosnap". Here a little  with implementation of the demanded: https://github.com/Bringer-of-Light/Qt- … ess-Window https://github.com/dfct/TrueFramelessWindow https://github.com/deimos1877/BorderlessWindow Checked up - works. Last a little  with , but first two quite accurately conduct themselves.

4

Re: Behavior of a window

Hello, XOOIOOX, you wrote: XOO> Hello, SaZ, you wrote: SaZ>> Concerning automatic deployment of a window I will tell nothing, if at whom is  - share, XOO> Yes, here all too is interesting to me . On "pure" Qt does not quit, it is necessary WinAPI to saw. The feature is called "aerosnap". XOO> Here a little  with implementation of the demanded: XOO> https://github.com/Bringer-of-Light/Qt- … ess-Window XOO> https://github.com/dfct/TrueFramelessWindow XOO> https://github.com/deimos1877/BorderlessWindow XOO> Checked up - works. Last a little  with , but first two quite accurately conduct themselves. SaZ, suffices to be called, how on yours in 10 the window edge is made? XOOIOOX, thanks, excellent projects) Pljusuju is very strong!!!!

5

Re: Behavior of a window

Hello, arfaa, you wrote: A> SaZ, suffices to be called, how on yours in 10 the window edge is made? And here Windows? We about Qt speak. Regular means in Qt are not present. Yes, if implementation for QML it is possible   Battle.net launcher is necessary. They  lgpl the version and all source codes QML lie in.mpq archives, but slightly .

6

Re: Behavior of a window

Hello, SaZ, you wrote: SaZ> Hello, arfaa, you wrote: A>> SaZ, suffices to be called, how on yours in 10 the window edge is made? SaZ> and here Windows? We about Qt speak. Regular means in Qt are not present. SaZ> Yes if implementation for QML it is possible   Battle.net launcher is necessary. They  lgpl the version and all source codes QML lie in.mpq archives, but slightly . Faced one more problem as soon as on this window I place  osg, with 3D a drawing, all ceases to work, in respect of relocation,  but if to make 3D a window without parenta, (parent = NULL) window operation is correct in what there can be a problem?

7

Re: Behavior of a window

Hello, arfaa, you wrote: A> faced one more problem as soon as on this window I place  osg, with 3D a drawing, all ceases to work, in respect of relocation,  but if to make 3D a window without parenta, (parent = NULL) window operation is correct in what there can be a problem? I will assume that it is necessary to hang up filters of messages on a window and on QApplication. And it is already explicit  necessary in yours osg a window.

8

Re: Behavior of a window

Hello, arfaa, you wrote: A> As it to achieve where to dig? By the way, it is possible to rummage in Cart source codes. It too as conducts itself(himself). Even  under a window the competent. https://github.com/telegramdesktop/tdesktop