Hi folks, I'm working on a touch screen app where gui space is very tight. I'd like to rotate a QLabel a bit so that it's either vertical, or offset at a diagonal a bit. Any suggestions? I couldn't find anything relevant on the QLabel interface.
Thanks so much!
...
Hi
What I'm trying to achieve is that a widget could exist in two different layouts, in this case in QHBoxLayout and in QVBoxLayout. I'm implementing a system which dynamically switches between the two layouts when a device's screen orientation changes.
Currently I'm creating, let's say a complex composite widget called MyWidget and ad...
Hi,
How to use QTableView in Nokia QT SDK(for mobiles). I referred some of documents but still I am not clearing about the QTableView. Please any one suggest the how to use the QTableView.
I want to show the QTableView with three columns.
Thanks is advance.
...
Is there a stylesheet available for use in Qt applications (through Qt Creator) that makes your GUI use the stylesheet you see in Qt Creator itself, as well as in AutoCAD and some other applications?
What is the name of that stylesheet or where can I get it? It looks much like the Vista stylesheet though...
And whenever you set a custo...
Hello everyone,
I was wondering if under the LGPL(v2.1) one could re-distribute a complete pre-compiled SDK that is linked to dynamically in my own project?
Background:
Qt is licensed under LGPL and many applications I develop are linking with it. More recently we created our own SDK that uses Qt. Now, other people may extend and write...
Hi,
I am using the following code for display the table. But I want to increase the table size.
QStandardItemModel *model=new QStandardItemModel();
for (int row = 0; row < 40; ++row) {
for (int column = 0; column < 3; ++column) {
QStandardItem *item = new QStandardItem(QString("hi"));
model-...
Using the Qt Designer I've made a couple of QFrames in each other, each having a horizontal layout. Their stylesheet predicates that they should have no margin nor a padding. This means that in the Qt Designers view as well as in the final result, no space is seen between the QFrames.
Using drag-and-drop I can place widgets into the win...
How do I get the final height of a widget that was just added to a layout, but because of this, it has not resized to its final size?
Basically I need to do this:
myGridLayout->addWidget ( somewidget, 0, 0, 1, 1 );
QPushButton *b = new QPushButton(somewidget);
b->setGeometry( somewidget->width() - 50,
somewidget->heigh...
Hi,
I created a basic Qt application for Qt-embedded but when I executed that application in my target platform using the -qws parameter then an error message always appear, please see below,
#./test_app -qws
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connectio...
QLineEdit has a textEdited signal which is emitted whenever the text is changed by user interaction, but not when the text is changed programatically. However, QDateTimeEdit has only a general dateTimeChanged signal that does not distinguish between these two types of changes. Since my app depends on knowing if the field was edited by th...
Hi all,
I know of three portable threading C++ APIs :
Qt
boost::thread
GNU Pth
Apart from possible licensing issues involved, how do these compare in:
actual portability (mostly interested in Linux and Windows)
capabilities
programming ease-of-use
support/development activity of the library
And: are there more like these that a...
Hello all,
I am trying to get dock click event on dock icon on Mac OS X. I am using Qt-Cocoa.
Any help would be highly appreciated.
Thanks,
Rahul
...
Hello,
How can I draw a selection rectangle on my screen with Qt in X11?
I want to be able to drag a rectangle on my screen (outside of the application) and then save the whole rectangle.
Thanks in advance.
...
I'm using a QTableView with a subclass of QItemDelegate to control the look and feel of the tableview's cells.
Each cell displays the name and status of a of an externally connected device, and as many as 100 devices may be connected at once.
The name and type of each device is essentially static, updating very rarely (perhaps once an ...
Hi
In my company we want to make a desktop software, but we want to create the better experience in the most common platforms (Windows(XP/VISTA/7), Linux and MacOs (And iOS) and several smartphones (android, webOS, windows mobile)
We have studied 3 options 1.- .Net, 2.- Java, 3.- C++ with Qt
We discarded .Net because we don't like the...
Hello,
I am writing in Qt 4.6. I am wondering if it's possible to achieve such a menu item, that it's possible to be triggered, but also has a submenu. Clicking it triggers associated action, hovering it causes submenu to appear.
...
Is it possible to open QWidget parented to eclipse mdi area (inside of
eclipse environment)
...
Hi, I'm trying to make a QML-based dictionary application. It fetches the word definition via an XML RESTful API and displays them in a ListView. I have it working in this rudimentary mode. But now I'm trying to implement two states for the ListView: standard view with the definitions and a "did you mean" type suggestions list for when t...
A Finnish customer tells me that the correct (locale aware) sorting for Finnish is: a-z, å, ä, ö.
But QString::localeAwareCompare() returns it as: a, ä, å, b-o, ö, p-z in Qt 4.4.2 on Windows Vista.
#include <qapplication.h>
#include <qlocale.h>
#include <iostream>
#include <tchar.h>
int
main( int argc, char* argv[] )
{
QLocale::se...
Can qmake handle dependencies of generated source files?
We have a prf file like this:
idl_h.name = Generate .H file for ${QMAKE_FILE_BASE}.idl
idl_h.input = IDLS # variable containing our input files
idl_h.variable_out = HEADERS
idl_h.commands = <command that takes .idl and genrates .h>
idl_h.output = $$IDL_GEN_DIR/${QMAKE_FILE_BASE}...