On Sonntag, 15. April 2018 19:08:14 CEST Igor Mironchik wrote:
> > The only problem now is that the entered text is not shown in TextEdit
> > with
> > this new class. The text changes are accepted, but nothing is shown. Any
> > idea here?
>
> The problem was in Text::resizeEvent(). I forgot to inv
Hi,
On 15.04.2018 19:30, Alexander Semke wrote:
Hi Igor,
As a possible solution:
[...]
Works now. I pushed a modified version of your code to our repository in
https://cgit.kde.org/labplot.git/commit/?
id=1cacf9f095b5e850baa58584b071986fbfe790fb
The only problem now is that the entered te
Hi,
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
class Resizable {
public:
Resizable()
{
}
virtual ~Resizable()
{
}
virtual void addSize( const QSize & size ) = 0;
protected:
QSize m_size;
};
class Corne
Hi Tony,
> Does layout::invalidate before activate help?
no, this somehow completely blocked the resize... Calling updateGeometry()
solved this problem.
Regards,
Alexander
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/
Hi Igor,
> As a possible solution:
> [...]
Works now. I pushed a modified version of your code to our repository in
https://cgit.kde.org/labplot.git/commit/?
id=1cacf9f095b5e850baa58584b071986fbfe790fb
The only problem now is that the entered text is not shown in TextEdit with
this new class.
Hi again,
If you want to be able to shrink the width too, you can do something
similar to:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
class Text;
class Corner
: public QWidget
{
public:
Corner( Text * parent );
virtua
Hi,
As a possible solution:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
class Text;
class Corner
: public QWidget
{
public:
Corner( Text * parent );
virtual ~Corner();
QSize sizeHint() const Q_DECL_OVERRIDE;
protec
Hi Alexander,
Does layout::invalidate before activate help?
Regards, Tony
On 15/04/2018 6:53 PM, Alexander Semke wrote:
On Freitag, 13. April 2018 10:22:14 CEST Igor Mironchik wrote:
Something like this?
[...]
Thanks Igor, I've got the idea. The resize works fine now but I have the
problem
On Freitag, 13. April 2018 10:22:14 CEST Igor Mironchik wrote:
> Something like this?
> [...]
Thanks Igor, I've got the idea. The resize works fine now but I have the
problem with the layout of the parent widget being not updated. My text edit
widget is embedded into a QFrame with a vertical layo