How to create an Item from C++ (without QML?)
Hi, I was wondering if someone could tell me if there is a way to instance a QDeclarativeItem (class A, for example) from C++ without using QML and add sub-items to it (like for example MouseArea etc.)...
View ArticleError in compiling QT-5.0 on ubuntu linux
Hi Team I am new to QT and Forum. Error is coming, while compiling QT-5.0 on ubuntu linux os. Error is mentioned below, please provide any pointer, how to fix it. The commands I executed are:...
View ArticleClosed Adding files to .pro dependent upon Qt Version
I have a code base that includes several project files based on Mac / Linux / Windows target, one of these is to generate an OpenGL 3.2 context under Mac. Now we have Qt 5 I don’t need this file and...
View ArticleWorkaround for the static nature of QML? Dynamically structured UI - by the...
There has been a lot of talk about the “dynamic” QML user interfaces. However, the word dynamic comes with a lot of contexts: - it is true that with QML it is easier to make animated UI, which is one...
View ArticleMacOS application in Qt widgets/dialogs
Hi, I wan to embed MacOS (10.7.x) application e.g xterm, xcode, openoffice, xclock etc. in qt (4.8.x) widgets/dialogs. Is this achievable? If yes can anyone please guide me how to achieve? I am newbie...
View ArticleMacOS application in Qt widgets/dialogs
Hi, I wan to embed MacOS application e.g xterm, xcode, openoffice, xclock etc. in qt widgets/dialogs. Is this achievable? If yes can anyone please guide me how to achieve? I am newbie to Qt so guide me...
View ArticleCustom QTreeWidgetItem class in QtScript
Hi, I am trying to make custom qtreewidgetitem class in QtScript. I doing it as: ============ main.h public CustomTreeWidgetItemClass : QTreeWidgetItem { public: CustomTreeWidgetItemClass();...
View ArticleVisual Studio Compile 32bit on x64 Machine?
Hi is it somehow possible to compile a 32bit exe on a x64bit Windows Operating system? I build the libraries as here Step 4: Build the Qt Library http://doc-snapshot.qt-project.org/4.8/install-win.html...
View ArticleQt5.0 OpenGL Types and ES #define
Hi, I am porting over my OpenGL application written with Qt 4.8.1 to Qt 5.0, the latter of which I compiled from source for both x86 and x86-64. The application uses OpenGL 2 and GLEW. I am developing...
View ArticleStatic Plugins problem
Hello, I am writing a desktop Linux application using PostgreSQL. I wanted to add static plugin like here: http://doc.qt.digia.com/qt/plugins-howto.html#static-plugins . I received an error:...
View ArticleQt5 XCode 4.5 SandBoxing Failed to load platform plugin "cocoa" on both Debug...
Hi, Mac OS X Lion XCode 4.5.2 Qt 5.0 Simple test app with a main window and a toolbar When I use SandBoxing in XCode 4.5 (I checked the boxes) I get the following error on both Debug and Release...
View ArticleWhy does QFontMetrics::maxWidth return such a large value?
Windows 7 SP1 MSVS 2010 Qt 4.8.4 I want to determine the maximum size of a QLineEdit widget knowing the maximum number of characters that must fit into it. Therefore, I want to use: int...
View ArticleTrouble debugging Qt source installed from git/gitorious
I have read and followed this [qt-project.org] and here [stackoverflow.com], except I loaded via gitorious rather than apt. Also, my install (after running configure/make/make-install) is located in...
View ArticleUIC step not being ran in build using Visual Studio Add-in
I recently upgraded to Qt 5.0.0 and Visual Studio 2010 (from Qt 4.6 and VS 2008). I installed the Qt Visual Studio Add-in, and converted my project to use it (previously i had set up build rules for...
View ArticleSee SQL on edit/delete of QSqlRelationalTableModel / QTableView row
Is there a way to see the SQL applied when I edit a QTableView row that is attached to a QSqlRelationalTableModel? Thanks.
View Articleاولویت رویداد ماوس
سلام من یک Widget ساختم که رویداد paintEvent اون یک جدول رسم میکنه. میخوام هروقت ماوس روی هرکدوم از سلول های جدول رفت اون سلول به نوعی Highlight بشه. برای اینکه تشخیص بدم نقطه ای که ماوس هست روی سلول...
View ArticleIssue with QSqlRelationalTableModel updating Sqlite views
I am attempting to use a “subclassed” QSqlRelationalTableModel object that I wish to use to update a Sqlite view (which passes an update to a table via an “instead-of” trigger.) I have the following...
View ArticleCannot change font size for QTableWidget header in Qt 5.0.0
Using the code snippet below I was able to change the font size for the QTableWidget header in Qt v4.8.2 but the same code compiles and runs in Qt 5.0.0 but does not affect the header font size. Any...
View ArticleTrouble in #include or #include
Hello everybody, I am learning Qt programming and confused by the include of QtGui and QtCore with Qt 5.0 SDK. In the book C++Qt programming with Qt 4 2nd Edition, it said that if we want to use...
View ArticleQRegularExpression and named capture groups
I would like to see a method for retrieving the names of the capture groups as well as the text captured by them. I want to pass all the captured texts to a Lua table, both numbered and named. I’m not...
View Article