Category: Qt

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 »

If you want to get the current time in QT including the milliseconds you can do so with QTime: QTime::currentTime().toString("ss.zzz"); This is very useful when debugging more »

Posted by Kieren Searle on the 01/19/10

Resizing a QGraphicsPixmapItem

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 »

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 »

My name is Kieren and this is my blog. I use it mostly to document any solutions to problems I come across in computing.

Search

XML Feeds