qt4

Which open-source C++ database GUI project should I help with?

I am looking for an open-source project involving c++ GUI(s) working with a database. I have not done it before, and am looking for a way to get my feet wet. Which can I work on? ...

How can I hide/delete the "?" help button on the "title bar" of a QT Dialog?

I am using QT Dialogs in one of my application. I need to hide/delete the help button. But i am not able to locate where exactly i get the handle to his help button. Not sure if its a particular flag on the QT window. Kindly let me know if you know how to achieve this. ...

Library Error for Ruby/QT

When trying to create a Ruby Qt application I get this error. /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:2144: [BUG] Segmentation fault ruby 1.8.6 (2008-03-03) [x86_64-linux] I am using: require 'Qt' And am running the 64bit version of Novell OpenSUSE 11 with KDE4 installed. ...

Visual studio intellisense for headers without .h

I am using a library that has headers without the .h This defeats visual studio's intellisense (declaration/definition lookup) Anyone know how to tell VS2008 that a file is a header? ...

When a Qt widget gets focus

I'm a new in Qt Designer 4.4.1 Open Source Edition. I used to program in Windows Borland C++ Builder and I've switched to Linux. I do not know how to gain the control when a widget (a LineEdit in the specific case) gains the focus, no mater if by tab or by clicking or by any other medium. My Focus Policy to the widget is "strongFocus", ...

Building 32-bit Qt Mysql plugin fails with MinGw

I'm building a MySQL plugin for Qt 4.4.3 Open Source Edition (Qt documentation), and using command: cd %QTDIR%\src\plugins\sqldrivers\mysql qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro make I manage to build it to my 64-bit Qt just fine using 64-bit MySQL dev files (using...

Qt commercial licenses?

Does anyone know the details of the Qt commercial license? Cost? Hidden policy gotchas, single and multi platform etc? Forgive my laziness, however their website offers few details and I thought I would ask here about anyone's specific experiences prior to submitting to the sales pitch. Is the commercial vs open source installation dif...

Identifier for win64 configuration in Qmake

Is there a "win64" identifier in Qmake project files? Qt Qmake advanced documentation does not mention other than unix / macx / win32. So far I've tried using: win32:message("using win32") win64:message("using win64") amd64:message("using amd64") The result is always "using win32". Must I use a separate project-file for x32 and x64 ...

Using Win32 API in Qt OSE project

It is a messy question, hopefully you can figure out what I want :) What is the best way to use Win32 functionality in a Qt Open Source Edition project? Currently I have included the necessary Windows SDK libraries and include directories to qmake project file by hand. It works fine on a small scale, but its inconvenient and cumbersome...

Why library name gets an additional 0 in its name?

I have this tiny Qt project with a project file like this: TEMPLATE = lib TARGET = record32 VERSION = 0.0.1 DEPENDPATH += . INCLUDEPATH += . CONFIG += shared SOURCES += recorder.cpp HEADERS += recorder.h When I compile a library from it by qmake && nmake, it results into files record32.obj record320.lib record320.dll ... Why is th...

Best crossplatform C++/QT4 development environment

Hi! I would like to develop cross-platform applications using C++ and QT4. I code on both Linux and Windows (MinGW). Currently I'm using KDevelop and it's QMake integration. On Windows I'm trying out Eclipse with QT integration plugin. However moving sources and updating profiles/IDE project files on both systems is tedious. I'm looki...

Using KDE4 localization mechanisms in pure QT4 application

Hi! I'm writing an application that is currently a pure QT4 app. It is designed to run cleanly on both Linux and Windows. However I plan to integrate it a bit into KDE in future and here come the problems with localization/translations. QT4 uses its own tr()/tr().arg().arg() mechanism and .ts/.qm files. KDE4 uses gettext and i18n/i18n...

QProcess setEnvironment has no effect?

Hi all, I'm trying to start a program using QProcess (Qt4.4 on vista64bit, developing in MSVC2005). The program is not in the path so I tried to add the directory the program is in to the QProcess environment, in a way similar to what gets demonstrated in the documentation of QProcess::setEnvironment. Unfortunately the program doesn't ...

Using an asterisk in a RegExp to extract data that is enclosed by a certain pattern

Hi. I have an text that consists of information enclosed by a certain pattern. The only thing I know is the pattern: "${template.start}" and ${template.end} To keep it simple I will substitute ${template.start} and ${template.end} with "a" in the example. So one entry in the text would be: aINFORMATIONHEREa I do not know how many o...

determine platform Qt application is running on at runtime

Hi all, Is there a (Qt) way to determine the platform a Qt application is running on at runtime? ...

How can I make the program I wrote with QT4 execute when I launch it not from IDE?

When I run the program from IDE (VS2008) it works perfectly. When I want to launch it from Windows Commander it doesn't work because it needs DLL that wasn't found. Used both debug and release builds. ...

Best way to get a query result

I'm developing an application that gets large images from an Internet server which is the best way to download this images, without freeze the entire application? I mean background download. I have thought about download it in another thread. ...

Error in QSqlTableModel inherited table.

Hi! I have this class that inherits from QSqlTableModel and it brokes after calling the submitAll() slot, after calling insertPoint some times. Here is the code. Thanks for the help. Regards. #ifndef VWLANDMARKTABLEMODEL_H #define VWLANDMARKTABLEMODEL_H #include class GraphicsPointLandmarkItem; class VWLandmarkTableModel : public...

How can I get the current users permission groups?

I have a Qt/C++ project and an old VB6 project. The user base might not have permissions to HKEY_LOCAL_MACHINE due to lack of administrator rights but I need to update a registry entry. How can I get a list of the groups to which a user belongs? ...

How to make QCombobox painting item delegate for it's current Item? (Qt 4)

QCombobox set Item delegate not painting for current Item.. I am trying to create a combo box showing different line types (Solid, Dotted, Dash etc). Currently i am setting item delegate for its content so as to draw/paint line type instead of displaying names. All line types are drawing currectly but as soon as i am selecting any line ...