How to set the Stylesheet for the QSpacerItem?
Can anyone please tell me how to set the Stylesheet for the QSpacerItem ? AFAIK, QSpacerItem doesn’t have this setStylesheet function. Please suggest…
View ArticlesetEnabled vs. setDisabled
I just had the problem that a widget was not disabled with widget->setEnabled(false); but it works with widget->setDisabled(true); . Can anyone explain please how that comes? Thanks
View ArticleUsing QInputDialog with custom QValidator
Hi, I’m trying to use QInputDialog with Validator. The custom Validator I’m using is from here [qtforum.org] . In the docs I saw that one of the arguments of the function QInputDialog::getText can be...
View Article[blackberry] Debugging cascades app under QtCreator
Hello, forum! I’ve got an issue trying to debug my blackberry cascades app under QtCreator 3.0 (everything works fine with Momentics). Here’s an issue: during debugging I am able to use breakpoints and...
View ArticleSet waitcursor on qtextedit
By default in a Qt GUI app the cursor changes to an IBeam when the mouse moves over a textedit. How can I change it to a waitcursor? I can set the waitcursor to the whole app but that is not what I...
View ArticleNew style connect to non-slot function with default params?
Hi – I’m trying to connect a signal to a non-slot function in a Qobject, namely QScriptEngine. The class has these functions: QScriptValue evaluate(const QString & program, const QString...
View ArticleQt Quick Designer Enhancements?
Are any enhancements planned for Qt Quick Designer, such as the addition of more QML types in the Library? Thanks. Steve
View ArticleRemote debugfing with Qtcreator, displays double floats/doubles incorrectly
I successfully compiled qt and have a complete remote debugging with single steps working, with the exception of float/double. I use QSettings to read a double value from a in file, and this is always...
View ArticleWhat version of OpenGL Shading Language (GLSL) does QtQuick 2.2 support?
What version of OpenGL Shading Language (GLSL) does QtQuick 2.2 support when ShaderEffect is used in QML? Is the entire spec supported? Thanks. Steve
View ArticleSession - Keeping track if user is logged in
Hi, I have connected my Qt app with a mySQL database. I use a login form (custom QDialog) that check if the username and password are correct, if so, the main Window starts. This all work correctly,...
View ArticleBeginner needs help
I am new to qt and c++ and I don’t know where to start. I am a part-time programmer for 20 years now, starting with basic and moving to object oriented languages, at last this was xojo. I became...
View Article(Solved) [QT 5.2 OpenGL] Unable to draw triangles
Hi everyone, I’m just stuck trying to draw triangles using QT5.2 and OpenGL 4.3. Simply nothing is drawn on screen, I get backgroundColor only. I have an OpenGLViewport class derived from QWindow, and...
View ArticleUsing a registered type when using a class from a c++ backend for a qml frontend
Hello, I have a Database class in my c++ backend in which I manage all my SQLite databases. I am using this backend and have created an API for my QML frontend to see. In order to do that I had to...
View ArticleQt 5.2.0 Android, QListWidget or QListView and DoubleClick
Hello all, I build a Qt application with: 1) Qt 4.8 with Necessitas 2) Qt 5.2.0 for android I try it on a Samsung Galaxy Tab2. I found that QListWidget or QListView don’t emit or manage doubleClicked...
View ArticleSmartphone/Tablet Icon/App-like Positioning/Drag and Drop
Is there any good way of doing a Smartphone/Tablet-like Positioning with draging QML Components around which snap to position and move other Components away, a customized positioning, that means not a...
View Article[Solved] Singletons in 5.2
Hey, i am afraid i am super confused as to how Singleton types are supposed to work. The documentation on the area is sparse at best and when there is some, it’s all saying something different or...
View ArticleWindow width and height in QML
Hello I’ve got a strange question. Is it possible to find out a root qml Item size when the window is maximized (viewer.showMaximized(); method is used). I’m asking because this code Item { ...
View ArticleOverlap two widget
Hello, I would like to create this kind of window. I use a QTabWidget customized using StyleSheet so I managed to add a space between the first and the second tabs, Now, I would like to put some...
View ArticleOne signal to many slots (and not the other way around
Dear all, Lets say for example I have a push button that, upon being clicked, clears five doubSpinBox’es. I could manually do this as follows: connect (ui->pushButton,...
View ArticleImprove The Look Of QT Screen
Hello, Im trying to make a few cosmetic changes to our system. 1) On the top bar of the mainwindow, right above the menu, it shows a default windows icon next to our company name, and I want to put in...
View Article