Does anybody knows how to make a good search box in Qt (actualy PyQt). It should sit in the toolbar (QToolbar) and look a little different than your normal QLineEdit (rounded corners and an icon as prefix). It should be aligned right with a blank space between the rest of the controls. All tips welcome!
...
Of all MVC-capable GUI toolkits, which one do you think has the best spefication and which one the most drawbacks ? In which one do you find your code easy to maintain and extend? Which is one do you find crippled (if any) and for what reasons ? I' m mainly interested in Qt and Cocoa but i would like to hear about others too.
Thank you...
We've got a Qt application that configures external devices by querying their configure interface and then, using a QWebView, we present an HTML page with the appropriate controls. We'd prefer to hand the configuration information to some sort of Qt "Form Builder" class, and have it spit out a QWidget with a layout that contains native ...
Slightly related to this question, but you don't really need to read that. The screenshot is helpful though:
So what's happening is when you click an object, change a property, deselect it and then reselect it, the property editor will be reset to all 0s, even though those aren't the actual values. When you actually click in the text ...
i want to develop an application to draw a line and rectangle as one can draw in ms paint...
keeping one point fixed .
can anyone help with any example...
...
I'm going to develop a bunch of projects with Qt that should compile both under Visual Studio with Qt integration (commercial) and Qt Creator with LGPL SDK. My primary IDE is VS but I've grown to like Qt Creator too. It would be nice to be able to work in both of them simultaneously. I need to do it in some extent anyway.
The most annoy...
Hi,
I am starting a multiplatform (Win Xp, Linux) qt project. I want to use an out of source build so my directory structure is as followed:
project/
CMakeLists.txt (global CMake file, includes other CMakeLists)
build/ (my build directory)
libA/
CMakeLists.txt
mystuff/
subprojectA/
CMakeLists.txt
s...
I created a QTableView with a QSqlTableModel.
By standard, double-clicking on the cells will mark them and the user can edit them.
I want, that the user isn't allowed to do that. He is allowed to mark the whole row by clicking on a single cell, but not to edit the cell.
How can I do that?
...
Hello,
I'm trying to create a standard two-column form, where the first column is a text label (QLabel) and the second column is an interactive widget, typically a text field (QLineEdit). We have decided to place form rows that share a common theme inside a QGroupBox, and thus in a separate layout than the main layout. Thus, the form el...
One cell in each row of a QTableWidget contains a combobox
for (each row in table ... ) {
QComboBox* combo = new QComboBox();
table->setCellWidget(row,col,combo);
combo->setCurrentIndex(node.type());
connect(combo, SIGNAL(currentIndexChanged(int)),this, SLOT(changed(int)));
....
}
In the handler function ...
Is it possible to display translucent and/or irregular-shaped windows with Qt?
(I'm assuming it ultimately depends on the capabilities of the underlying GUI system, but let's assume at least Windows XP / Mac OS X)
If so, how does one accomplish this?
...
Need a Math Editor to integrate to my application written on C# to be able to write math formulas. Can someone help me with this please? Some open source code will be great! Tell me steps, that integrate your suggested application to my application.
...
Hello everyone. I'm using Qt4Dotnet project in order to port application originally written in C# on Linux and Mac. Port to Linux hasn't taken much efforts and works fine. But Mac (10.4 Tiger) is a bit more stubborn.
The problem is: when I try to start my application it throws an exception. Exception states that com.trolltech.qt.QtJamb...
I want my custom widgets to gain extra space when the dialog is resized. This was working when I only had a handful of widgets, but after adding several more columns of these same widgets and putting them in a QGridLayout, the extra space merely goes in as padding between the widgets.
...
Hi,
I've a simple question regarding the update of a QTreeView (or any subclass of QAbstractItemView) when a model object changes externally. Let's say that a list shows a subclass of QAbstractItemModel, and an item of that model gets changed outside of the list window, and we would like to update the list with the change. What is the u...
Using the Qt framework, how do I measure the width (in pixels) of a piece of text rendered with a given font/style?
...
Edit: Solved.
Hi, I'm starting with QT, I try to connect a slot to signal QProcess::started() but can't. QObject::connect() returns false.
Any idea what am I doing wrong?
Here's part of the code:
class foo : public QObject
{
public:
QProcess *process;
public slots:
void process_started();
}
foo::foo()
{
process = new QPro...
Hi all,
I have a function which calls itself 10 times a second. I am using QTimer for repeat calls.
void DisplayClass::UpdateGuiWithData()
{
//miscellaneous code which is validated
SingletonObjectAsThread::instance()->UpdateFromGuiToExternalHardware(ClassOjbectArray,var1,var2);
QTimer::singleShot(100,this,SLOT(UpdateGuiWithData())...
I see qCopy, and qCopybackward but neither seems to let me make a copy in reverse order. qCopybackward only copies it in reverse order, but keeps the darn elements in the same order! All I want to do is return a copy of the list in reverse order. There has to be a function for that, right?
...
Hi,
I'm using a stylesheet in my Qt desktop application (a .qss file), but I can't find out how to make the .pro file copy the .qss file to the output directory (where the .exe file is being created), which means the application runs totally without any styling.
I used to run the project from Visual Studio, and VS would take care of al...