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...
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.
...
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...
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...
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...
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...
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...
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 ...
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...
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...
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 can't I use other Qt series with different Python releases?
...
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);...
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...
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 ...
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...
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.
...
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...
Hi,
Can any one tell me please about the Thread in QT.
Thanks in advance.
...
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
...