qt

Max widgets information in Qt

After closing my program after running it from Qt Creator, I can see how message that looks like this: Widgets left: 0 Max widgets: 281 This is due to the added -widgetcount argument in the Run settings. My question is, what does max widgets means? Does it represents how many widgets have been created? I'm getting worried in te...

How to loop QListView item selection

Hi All, How can I make QListView item selection loop from bottom item to top (by pressing navigation key, down) and from top item to bottom (by pressing navigation key, up)? Is there a flag to be defined or some other way? My listview is in IconMode I wanted the selection to go to next row's 1st item when I've reached the end of a row. ...

Cant get a custom ItemDelegate to work

Hello there, first off, im new to python and pyqt so please bear with me. Im using a QTableView with a QSqlTableModel everything works as intended. The last column of the view contains only 0 and 1 as value which i want to display as checkbox and this column should be editable. Ive read that you should subclass QItemDelegate which i d...

C++ - QSettings question

Hello! Does Qt has something like QSettings, but for local scopes? I am seeking for a data structure with the same methods, but not specific for APPLICATION. I mean, I want to construct local (for example, exporting settings) settings from file (xml, for example) and use them in local scope - without polluting global application s...

Qt Printing problem

I have a QGraphics scene its Rect is 0,0,2000,800 I want to get print out in A4 all this scene. How can I do it? ( I try it but it is unreadable. I want to get print out readably ) I use this codes ui.graphicsView->setRect(0,0,2700,800); QPainter painter(&printer); ui.graphicsView->render (&painter,scene->sceneRect()); I cant show...

Qt ISO C++ forbids declaration without type - header file is included?

Hello, I'm receiving the forbids declaration without type error in a Qt application I'm working on. The problem is that I have included the header file which declares the class. It should be defined as a type as far as I can tell. I tried forward declaration as well, but I'd like to use the methods of the class in this file and so I...

Qt 'Rectangle' is not a type - when rectangle is declared as a class

Hi, Im having a problem of my Rectangle class not being seen as a type. I've included the proper header, and so I am confused. shapes.h #ifndef SHAPES_H #define SHAPES_H #include "Colors.h" #include <QPoint> #include "glwidget.h" //class GLWidget; class Shape { public: virtual void draw(); }; class Rectangle : Shape...

I don't know how to choose the gui develop tech, can some guys give me any advices?

Hi!guys. I mainly work on c#, and wpf is my first choice when I make desktop software. But I am lack of c++ experience, and I want to develop some desktop software in c++, now I have some problem with the gui framework. I'm learning qt, and compared to wpf, I have much more code to write, I like the xml way to describe gui. But qt's xml ...

How to use QGraphicsView in Qt?

I am new to Qt. First look at the image. http://i225.photobucket.com/albums/dd200/saravanan_comp2001/sample.png I need to create above like in Qt. If I click the circle then, I need to give one popup message like this "You clicked 2 circle", I need to add the circle in run time in any location. how to implement this in Qt using QGrap...

Undefined reference to `RPositionServer::RPositionServer()`

Hi everyone, i'm writing program for Nokia 5230 (S60 5th edition platform) using Nokia Qt SDK. I have the problem with retrieving geolocation info. I'm trying to use example from nokia forum (http://bit.ly/be3QDK first one). The following code: #include <lbs.h> #include <lbsrequestor.h> #include <lbscommon.h> #include <lbsposition.h> #i...

How to Add custom shape button in fixed Location in QWidget

I am new to Qt. First look at the image. http://i225.photobucket.com/albums/dd200/saravanan_comp2001/sample.png i already created custom shape button (inherit the QWidget). now the problem is adding the buttons into another widget(Parent QWidget). How to add this button in Fixed location and some times i need to add the buttons in o...

Why must I use Qt Designer 2.7 with Python 2.7 ?

Why can't I use other Qt series with different Python releases? ...

how to Find child Widget from Parent Widget

Hi., in my project i added Custom Widget inherit from QWidget class. the shape is Circle. i added this widget in to the parent Widget. if the custom button clicked then how to find which button clicked? Adding custom button to Parent Widget: void ShotViewCTRL::addShot(QString shotNanme) { ShotButton *btnShot=new ShotButton(this);...

How to Bring the Widget Bring to front in QT?

Hi., Please have a look at the snap: http://i225.photobucket.com/albums/dd200/saravanan_comp2001/img1.png the circles are custom controls. when i click the control , i need to bring the widget into front. Ex. if i click the second circle it's should come like this please see the image: please add http:// i225.photobucket.com/albums...

Waiting for Variable Change

Here my code snippet written in Qt. bool myFunc() { ....... while(!tcpCommunicator->isLoginReplyExist) { qApp->processEvents(QEventLoop::AllEvents); } ....... return tcpCommunicator->res; } After "isLoginReplyExist" is changed by another part of program I want to exit from loop, is there any better way to ...

Styling only promoted widgets using QT Creator

I'm new to Qt and have been designing forms using Qt Creator. I've noticed that I can apply styles for specific widgets in the form's stylesheet, and it will style every widget on the form. For example "QPushButton{color: red;}" will make all the QPushButtons on the form have red text. Is there a way to only apply styles to certain gr...

Using QStyle to set global default minimum QPushButton height

Is it possible to define a default minimum height for a QPushButton through a custom application wide QStyle? I know this can be achieved using stylesheets, but I rather not use them because of performance reasons. ...

PyQt4 SIGNAL/SLOT problem when using sub-directories

Thanks in advance for taking the time to read this. Apologies that it is somewhat verbose. But hopefully it fully explains the problem. Stripped code demonstrating the issue is included. I'm having an issue with PyQt4 SIGNAL/SLOTS. While I can make everything work fine if I am writing in a single file, I can't make things work if I some...

Nokia QT SDK Thread Concept

Hi, Can any one tell me please about the Thread in QT. Thanks in advance. ...

How to embedded the Print Preview Dialog in QT

Hi., in the QT, if i use the print preview dialog widget then it's popup as new window. actually i need to show print preview to the user, i need to embedded in my application main window. is there any way to do that?. i tried printPreviewWidget but,i did't get the result? please help me to fix the problem ...