Login Linkedin Twitter Facebook
Logo
  • About Us
    • Our Story begins…
    • Careers
    • Contact
    • Privacy Policy
  • Professional services
    • QT Expert Help
    • Windows & Mac Applications
    • Linux Applications
  • Customer Stories
  • Blog
  • News

Categories for Qt Tricks

  • All Categories
  • Android
  • C++
  • CMake
  • Debugging
  • JSON
  • Layouts
  • Locale
  • QML
  • Qt
  • Qt Script
  • Qt Tricks
  • Scripting
  • Widgets
  • Windows

QWidget Pixel Drawing

Posted in Qt, Qt Tricks, Widgets

In very rare occasions, we want to draw individual pixels all over a widget. Custom painted widgets are much less common. But we can often get away with much easier painting than doing individual pixels. We draw these using lines, …

QObject SignalBlocker

Posted in C++, Qt, Qt Tricks

Sometimes you have to stop a class from emitting a signal for a while. One example that just came up on the Qt interest list was an application that modifies a file which it also monitors with a QFileSystemWatcher. You …

Ctrl +Enter Edit Handling

Posted in Qt Tricks

I have a pet project where I’m doing some fun stuff with Qt scripting. To quickly test small script things, I implemented a simple window that have a QPlainTextEdit where I input a script, and an output window for what …

Printing Parts of an XML Tree

Posted in Qt Tricks

When debugging XML code, you often wonder about the contents of a subtree. If the tree is small, you can just print it. But when the XML tree gets big, this just isn’t very handy. Especially not if you are …

Canonical Locale

Posted in Locale, Qt Tricks

Sometimes you need a fixed locale. One of my latest applications was reading and writing floats in XML, and the string parse and write routines for floats are locale dependent. So the XML file would either have “2,01” (US notation) …

ShootABug

Posted in Debugging, Layouts, Qt Tricks, Widgets

When odd widget parts appear and layouts misbehave, ShootABug comes to the rescue.

  • Contact

Viking Software
Petersmindevej 2B
DK-5000 Odense C
Denmark

+45 6398 0020

  • About Us
  • Our Story
  • Careers

Copyright © 2021, Viking Software.

Recent Posts

  • Docker image for Qt Android builds
  • Using clang-format with QtCreator
  • A good QML file

Connect With Us

  • LinkedIn
  • Twitter
  • Facebook

Copyright © 2021, Viking Software.

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok