Home > Mobile >  Excuse me the left can be promoted shrinkage, folding window is how to achieve
Excuse me the left can be promoted shrinkage, folding window is how to achieve

Time:09-24

CodePudding user response:

wrong on the right

CodePudding user response:


This piece of

CodePudding user response:

Once made similar is on 4.8, determining if a mouse position in mouse events window, if the window edge, modify the mouse arrow styles, the right mouse button press event triggered during this period, and then according to the offset of the mouse corresponding to the change of the window

CodePudding user response:

QSplitter this control should be able to meet the desired effect,
 QSplitter * splitter=new QSplitter (Qt: : Vertical, this); 
QListView * listview=new QListView;
Treeview QTreeView *=new QTreeView;
QTextEdit * textedit=new QTextEdit;
Splitter - & gt; AddWidget (listview);
Splitter - & gt; AddWidget (treeview);
Splitter - & gt; AddWidget (textedit);
Splitter - & gt; SetHandleWidth (0);

CodePudding user response:

And QSplitter is used can be nested, vertical drag the Splitter can put them inside a horizontal Splitter, so can also drag around size,

CodePudding user response:

reference 5 floor people bow water response:
and QSplitter is used can be nested, vertical drag the Splitter can put them inside a horizontal Splitter, so can also drag around size,

QSplitter is can drag zoom, the screenshot above shows incomplete this feels like a title bar can click on the arrow folded display

CodePudding user response:

Title and folding functions can write their own to implement a custom controls

CodePudding user response:

So freecad,
The code can use

CodePudding user response:

This as above said QSplitter is true, I generally is selected to integral component in the designer and then select the horizontal or vertical segmentation on the toolbar to finish, of course, you can also be implemented in the code,

CodePudding user response:

Can, I also learn to learn

CodePudding user response:

Tag, the later can come to here, ha ha ha ha

CodePudding user response:

That's great, QSplitter, I also used this thing! A collection of
  •  Tags:  
  • Qt
  • Related