qt

Display window full screen on secondary monitor using Qt

I need to get it working in a Qt4 project, both on OSX and Win32. Seems to be possible with native controls (see here and here) so now I'm looking for some Qt code to do it. Thanks in advance! ...

How to use RTF export feature of KDE?

In stackoverflow.com I have found a question where a user was suggesting to use this libraries of KDE in order to export-inport RTF files. But, when I downloaded I saw that there are lot of files that are included in the .cc and .h files that are missing. So please give a hint how to download all necessary files and is there any guide th...

App crashes when QList grows too large

Hi. I make an application which has to store a lot of data in memory to improve calculation performance. It is a hierarchy of lists and objects where the top object is a QList<myObject*>. When loading data, a lot of instances of new myObject* are created and added to the list. The memory consumption grows and when it comes to ~1.9Gb the...

Qt Slot won't connect to DBus signal

Here is my problem: I send this message on my DBus session bus : signal sender=:1.3 -> dest=(null destination) path=/; interface=a.a.a; member=a here is my code : dbus_interface.h : #ifndef DBUS_INTERFACE_H #define DBUS_INTERFACE_H #include <QtCore/QObject> #include <QtCore/QString> #include <QtDBus/QtDBus> class dbus_interface :...

Qt or wxWidgets on Cocoa?

I was told that the newest Qt is Cocoa based, and as so, it's 64 bit. And Cocoa is Object-C based, whereas Qt is C++ based. How is that possible? I mean, how C++ based library can turn into Objective-C related one? Is this just using Objective-C++? Can any C++ library be Cocoa based using Objective-C++? ...

Resizing a cell's height and Witdth and loading an image in QTableWidget

Hi I want to make a 8*8 table with square cells ( a chess board ).Now I have the code to make the table but don't know how to resize the cells to be square shaped. I also want to put picturs of pieces into the cells. How should I do these? here is the code i have: #include <QtGui/QApplication> #include "mainwindow.h" #include <QHBoxL...

QT : Using State Machine for UI interactions ?

Greetings, We are developing a scientific QT Application which detect the border of a cell.Please refer to following prototype snapshots. http://i27.tinypic.com/25tub9v.png http://i26.tinypic.com/9l8kcj.jpg Now ,we are going to develop this as a opensource product with a good design and architecture.We reconed that it has many comple...

Show message when close program in Qt/C++

Qt - c++ Show message when user close program Thanks ...

c++ qt dll not in good folder

I made an project in visual studio with QT, its something for in the taskbar with a tray icon. but on other pc's i didnt saw the icon because they dont have de qicon.dll file. the qicon.dll is in the folder: C:\Qt\4.6.3\plugins\imageformats but when i delete it there and i paste it at the exe location it dont work. how can i fix this? ...

Qt Creator Designer Issue

A friend just recommended that I try Qt Creator, so I downloaded it from http://qt.nokia.com/. When I tried to make a hello world application using the GUI designer, I could not drag any widgets onto the window. I am using Ubuntu 10.04 and Qt Creator 2.0.0 on Qt 4.7.0 (64 bit). I am able to compile projects, but not add widgets to the UI...

How to convert a unicode string to its unicode escapes?

Say I have a text "Բարև Hello Здравствуй". (I save this code in QString, but if you know other way to store this text in c++ code, you'r welcome.) How can I convert this text to Unicode escapes like this "\u1330\u1377\u1408\u1415 Hello \u1047\u1076\u1088\u1072\u1074\u1089\u1090\u1074\u1091\u1081" (see here)? ...

shared_from_this throws an exception

I am writing Qt-based app with Blender-like functionality. It consists of a 'framework' which is GUI + plugin system and plugins. Plugins are Qt dlls with objects (e.g. a Sphere, a Box, etc.) that can be basically created and displayed. All those objects, once created, are stored in the framework in some kind of a container structure whi...

Qt hide minimize, maximize and close buttons

Do you know how to hide minimize, maximize and close buttons of title bar in Qt. i did it before in some other project but i could not find it now. could u help me? especially i need to hide it on QMainWindow ...

How to make unblocking QMessagebox?

How to make unblocking QMessagebox? ...

What portable data backends are there which have fast append and random access?

I'm working on a Qt GUI for visualizing 'live' data which is received via a TCP/IP connection. The issue is that the data is arriving rather quickly (a few dozen MB per second) - it's coming in faster than I'm able to visualize it even though I don't do any fancy visualization - I just show the data in a QTableView object. As if that's ...

How to convert int to QString ?

Hey guys .. Just a simple question .. Is there an QString function which takes and int and outputs its QString form ? ...

Qt moving from LGPL to commercial halfway through

I've never understood this bit about licensing on the Qt website. Qt Commercial Developer License The Qt Commercial Developer License is the correct license to use for the development of proprietary and/or commercial software with Qt where you do not want to share any source code. You must purchase a Qt Commercial De...

QTreeView, QFileSystemModel, setRootPath and QSortFilterProxyModel with RegExp for filtering

I need to show a QTreeView of a specific directory and I want to give the user the possibility to filter the files with a RegExp. As I understand the Qt Documentation I can achieve this with the classes mentioned in the title like this: // Create the Models QFileSystemModel *fileSystemModel = new QFileSystemModel(this); QSortFilterProx...

problem with replacing a background image using signal / slot in qt

Hi i want to make a simple chess program. So far i've made the board using QTableWidget and loaded the piece pictures in the cells of table. Now i wnat to use signal and slot so that when user clicks a cell and then click another cell the piece picture from first cell goes to second cell, But I don't know how to do it. Note that i don'...

QThread blocking main application

I have a simple form UI that has a slot for a button, starting a thread: void MainWindow::LoadImage() { aThread->run(); } And the run() method looks like this: void CameraThread::run() { qDebug("Staring Thread"); while(1) { qDebug("ping"); QThread::sleep(1); } } When I click the button that calls...