qt

Is it possible to connect two QComboboxes dynamically?

hi! I have two comboboxes: The first one is Language (English, Italian, French...) and the second one is another list of stuff that is different for every language (or a little bit different) so the content must be loaded every time the language is changed. How can I handle it? Example: If I select English, in the second combobox I ...

How to implement a network chating system using QT??

I am new in Qt. I am trying to implement a network chat system using Qt. One example is explained in QT example. Their a TextEdit is used to store and sending messages which comes form several client. But i want to implement a pop-pup window for individual chat. Like yahoo messenger. Can anyone help me to implement my invention?? Also i...

network chat system using qt with pop-up window for individaul chat

Hi all, I am very beginner in Qt.I want to develop a network chat system using qt with pop-up window for individual chat. ...

Qt Phonon MediaObject conversion error

Hi, I want to play some WAV files, but I have error C2664 in Visual Studio: error C2664: 'Phonon::MediaObject::setCurrentSource' : conversion error from'const char [24]' to 'const Phonon::MediaSource &' This is the code: Phonon::MediaObject *media_object_; media_object_ = new Phonon::MediaObject(this); media_object_->setCurrentSour...

Virtual Qt signal?

Whilst reviewing some Qt C++ code I came across this: class Foo { Q_OBJECT signals: virtual void someSignal(const QString& str, int n) { Q_UNUSED(str); Q_UNUSED(n); } ... }; Now, Qt signals cannot have a body so I'm surprised this even compiles (perhaps because the body is effectively empty). I also don't see the p...

Unable to compile Qt Symbian application that uses gSoap

I'm using gSoap along with Qt for Symbian. Under the emulator, the application compiles fine, but when I change the target of the compiler to compile for the device, I get the following error: WARNING: Can't find following headers in System Include Path <netinet\tcp.h> This gets included from the stdsoap2.h file as follows: #ifnde...

Phonon audible output fail

This is my code: media_object_ = new Phonon::MediaObject(this); fileName="./DemoEN2.wav"; media_object_->setCurrentSource(fileName); media_object_->play(); I have the includes: #include <Phonon/MediaObject> #include <Phonon/MediaSource> #include <phonon> And: Phonon::MediaObject *media_object_; QString fileName; When I run the ....

Qt Flowchart Application Architecture

I want to build a flowcharting application in Qt to get some practice modeling GUI applications. All it has are draggable boxes and circles that can be connected with straight lines. As this is my first GUI application, I am unsure how one typically designs such a project. Here are my two designs. 1) Build a bunch of model classes (Bo...

Qt - Design - requirements

Hi, I am trying to make a widget in such a way that when ever I typed in a lineedit, and click OK button, then that word must come with some visual effects(like with different font style and background color). After that, if I again type another word and clicked the OK, it should come after the first one, like this it can grow further...

painting inside widget in Qt

I created a very simple GUI that has a push button and a "Graphics View" widget from Display Widgets. On pushing the button I want a line to be drawn across the "Graphics View" widget. I have changed the name of the "Graphics View" widget to gv by right-clicking the widget in design view and then selecting change objectName. I am not abl...

Displaying a QStandardItem with its foreground color in a QTreeView even when it is selected

Using Qt 4.6.3 on Linux/X11. I have a QTreeView widget which uses a QStandardItemModel as its model, with 4 columns and hundreds of rows. Most of the items in the list are to be displayed with a standard color, but a few need to be of a different color. I can change the colors of those few items easily with QStandardItem::setForeground(...

Property selectors in QT CSS

I have a tree widget that I'm using for a user/room concept. How can I style the rooms independently from the users in the rooms? I'm assuming it has something to do with QT's property selector in CSS? I would like to be able to do this: QTreeView::item[isUser="true"] { background: blue; } QTreeView::item[isRoom="true"] { background: re...

QtWebkit and QWebElement - Get user input?

Hi, how can i get the userinput in an input-field? QObject::connect( webView, SIGNAL(loadStarted()), this, SLOT(slotLoadStarted()) ); void slotLoadStarted() { QWebFrame *frame = webView->page()->currentFrame(); if (frame!=NULL) { QWebElementCollection collection = frame->findAllElements("input[name=email]"); fore...

Help with FFT(Fast Fourier Transforms) and/or DSP

Hi, Im trying to do a screen-flashing application, that flashes the screen according to the music(which will be frequencies, such as healing frequencies, etc...). I already made the player and know how will I make the screen flash, but I need to make the screen flash super fast according to the music, for example if the music speeds up, ...

How to anchor pushButton to the widget ??

Hi, I'm QT beginner. I've created very simple window with one button on it. My button id 10 pixels from right edge of the window and 10 from the bottom. I'd like to keep this position even when the window will get resized. That means, still 10 from the right and 10 from the bottom. How to do this ?? Thanks zalkap ...

170 MB Hello World -> Deploying apps with Qt.

I'm new to Qt but no problem in the C++. I used Qt Creator and made a simple program with a button (like a hello world) then I built the project. I was not able to run the executable file in windows itself (outside the creator) because it needed these DLL files: libgcc_s_dw2-1.dll mingwm10.dll QtGuid4.dll QtCored4.dll I found these fi...

multiple directory view

i would like to have a multiple directory view while using QDirModel and qtreeview like this : QDirModel *model = new QDirModel; QTreeView *tree = new QTreeView(); tree->setModel(model); i can view the content of a given root directory how can i view multiple roots directory on a single widget like QTreeView ...

how to print a QGraphicsScene that has text and graphics

I have a QGraphicsScene that has graphics as well as text drawn on it. When I try to print, the graphics are fine, but the text is using a font size defined in points, so scene->render() when I pass it a QPainter initialized with a QPrinter, has VERY large text. How am I supposed to print a QGraphicsScene that has text on it? edit: H...

How to trigger the edit mode of an item in a QTableView?

I'm using QTableView and QStandardItemModel now. In the QTableView, if you double-click a cell, this cell will get into edit mode and you can edit its content. Now I have a problem, I want to trigger the edit mode of an item by code (by command), what should I do? I cannot find proper function or slot in QTableView or QStandardItemMode...

Qt : waiting for a file being closed by another process

Hi, I've a daemon (obexpushd) that writes some files in a directory. In my Qt application, I listen to changes in this directory thanks to QFileSystemWatcher. Yet, the directoryChanged signal is emitted when obexpushd creates the file, not when it has finished to write it. So, I've to wait for obexpush to finish writing the file before...