LinuxAnswers - the LQ Linux tutorial section.
Go Back > Blogs
User Name



QT4 GUI Programming: Center Window

Posted 05-28-2012 at 12:50 AM by rainbowsally

Today's Features:
  • Center a non-dialog window in qt4.

If you have mc2, 'mc2 -fetch qt4' for the Makefile, otherwise, do whatever you do to get this rolling.

Here are the files for this demo/test.

file: src/main.cpp
// generic C++ source template created by new.main

#include <stdio.h>  // printf(), FILE*, etc.
#include <malloc.h> // malloc(), free()
#include <string.h> // strcpy(), memcpy(), etc.
Posted in Uncategorized
Views 964 Comments 0 rainbowsally is offline

libLQ-qt-mc2 with qt4 support

Posted 05-27-2012 at 09:22 PM by rainbowsally
Updated 05-04-2015 at 12:50 PM by rainbowsally (new version)

Note: As of March 2015, there are 64-bit versions of mc2 and kdevelop3, debugged kdbg, new.make, and more available for d/loading.

See blog entry here if you are running a 64 bit linux.

Here's the original post which might contain helpful links if you have trouble finding or linking the Qt libs. There are quite a few versions floating around at this time....
Posted in Uncategorized
Views 1234 Comments 0 rainbowsally is offline

People that complain about KDE4

Posted 11-24-2010 at 01:10 PM by lumak (Lumak's Guide to Random Things)
Tags kde, kde3, kde4, qt3, qt4

Curious... I wonder, what is it about KDE4 that people don't like? New tools? New lay out? Visually different? Resource Hog? QT4?

This is all akin to wanting Windows 7 (Aero) to function just like XP or its predecessors... sure, you may be able to make the gui and theme look and feel like the previous, but all the system tools are going to be updated.

As with all history of computing, when something significantly changes, it's going to take time for programs to adapt...
Views 14144 Comments 7 lumak is offline

slackware64 multilib QT issues

Posted 09-17-2009 at 06:13 PM by lumak (Lumak's Guide to Random Things)

UGH! ok I was trying to compile q4wine for god knows what reason and half the variables in the build/CMakeCache.txt were pointing to /usr/lib64/qt and the other half were pointint to /usr/lib/qt.

I solved my issue by adding
on the line right before
cmake \

Hope this helps somebody else with cmake and qt problems.
Views 2691 Comments 2 lumak is offline


All times are GMT -5. The time now is 01:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration