I've seen some strange things when trying to remove QWidgets from a QLayout while using code such as:
MyWidget->layout()->removeWidget(AnotherWidget);
Sometimes AnotherWidget wouldn't be removed, sometimes it would display only part of it.… more »
I've just finished fighting with some code where I wanted to resize some QGraphicsPixmapItems. I was able to scale them but this didn't allow me to resize to specific pixels. I decided to take a step back and noticed that if I create a pixmap object firs… more »
When converting a tm structure to a string using the asctime function in c++ you are left with a cstring ending with a newline character (\n). This is often a pain if you want to insert the date into another string to use later. Since we are using a… more »
I have been fighting with Qt over the weekend to get a QWidget containing some buttons to scroll when there was overflow. I couldn't get a scrollbar to display for some time when my project consisted of a QMainWindow containing a QWidget that was subsequ… more »
This week I started to create my first Qt application. One of the first problems I came across was that once I had created a class that inherited QWidget for it's display I wanted to place it into a KMainWindow display that I had already created earlier.… more »