CSS, QSlider, set background, handle not visible anymore
Hi, i have the following code: CustomSlider::CustomSlider(QWidget *parent) : QSlider(parent) { QObject::connect(this, SIGNAL(sliderMoved(int)), this,...
View ArticleQGlPainter (qt3D) and qpainter : drawContent (text)
Hi, I need to draw rich text in my qt3D/Qt4 application. so I decide to draw in an opengl fbo using qpainter. It works fine sometimes, and don’t see anything, or crash depending on preceding opengl...
View ArticleA good way to allow editing of Model items?
hey i’ve been learning normal Qt for over 7 months and i only just started learning some Qml after hearing so much about it. I’ve been trying to get a better understanding of data models and views in...
View ArticleQt GUI merge C++ console app
Hi, In order to learn about Qt, I made a small GUI by Qt Designer 5.0.2 (via MSVC and Qt-VS-add-in). The GUI contains 3 lineEdits (2 for entry 1 for display result) and 1 pushButton to start the...
View ArticleReading in from a streaming text file
Hi, I’m trying to read in a line from an instrument that streams in data into a txt file in the format: :SA, -1.05, -0.83,190.98 :TS,13050814070409,35.0,+22.4, 0.0,1528.0, 0...
View ArticleGetting QWidget's Windows messages without subclassing it and reimplementing...
Is it possible to intercept QWidget’s Win messages without reimplementing QWidget::winEvent? Is there something like installEventFilter but for Windows native messages?
View ArticleReading registry - problems with LPCWSTR...
Hello, I’m trying to read the registry, and I’ve started with this simple example I found: #define BUFFER 8192 #include <QCoreApplication> #include...
View ArticleQt solutions have been re-licensed, can I use the src directly now
My commercial application uses a Qt Solutions component. Last year it was available under LGPL license, so I was forced to use the component in the form of a shared library. I found this post...
View ArticleNeed help from an activeX guru.
Dear (windows) qt users, I’m integrating an activex into my application. I used dumpcpp and everything worked well. That is until I wanted to use the application on the destination computer. My activeX...
View ArticleQGraphicsItem paint is not being called
Hello everyone! I’m working on a project, where I use QGraphicsScene, QGraphicsViwe, QGraphicsItem. I’m drawing QGraphicsItems and the problem is that, although bounding rects are being calculated...
View ArticleCheckbox added to QStandardItem with setCheckable(false) ?
Dear fellow programmers, I worked on a simple QTableView example that uses custom data (using a derived class of QStandardItemModel). The (downsized) core is to implement a QStandardItemModel that...
View ArticleError using QGLWidget on 7425 Mips platform
I am trying to build and QT5.0.1 on a MIPS 7425 platform, I get following error running browser application which uses QGLWidget. The same browser application and HTML5 page work fine with previous...
View ArticleProblems using MouseArea inside a delegate of a Repeater - ends up 1 pixel tall!
Good evening everyone, I’m new to these forums, however I’ve been reading and enjoying all of the knowledge shared here to date! I’m having some problems here with using a MouseArea inside of a Text as...
View ArticleQt 5.0.2 on Mac 10.8.3 (Mountain Lion) qmake/make fails
I’ve been away from Qt for a few years. I just installed Qt 5.0.2 on my Macbook running Mountain Lion (10.8.3). I went through the “Notepad” tutorial [qt-project.org] to see the new Designer UI and...
View ArticleA problem to run Qtserialport example!!
Hi I did this instruction : http://qt-project.org/wiki/QtSerialPort and I have got this Errors you can see in the picture below : What is the problem ? [edit, picture link updated, koahnig]
View ArticleWeird!!My Qt application is running with the whole main function commented out.
Hi all , I have been working on a Qt application but it is giving me a hard time working with its main function.I need to trap the application before it starts so I can do some stuff such as checking...
View ArticleQtCreator on my Macbook Air: Problem to select entries, when properties are...
Hi, I’m currently using QtCreator from Qt 5.0.2 on my Macbook Air with Mountain Lion. No mouse installed. The only problem i have is whenever i have to choose an entry from a combobox i have to use...
View Articleqt502 compiler not working msv2011
Dear All,cannot compile an example from qt. programme returns message: :-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options. i am using: Qt Creator 2.7.0...
View ArticleSegmentation fault with SQL objects in Qt 5, not in 4
Hi. I have a project that uses classes QSqlTableModel and QTableView, with SQLIte. When I built this project using Qt 4.8.5, it worked. Once I built it with Qt 5.0.2, it started giving me ‘Segmentation...
View ArticleProblem with highlighting a character in a text
Hello Everybody, I have a problem when i highlight a certain letter in a text, if the call to highligh happens only relatively fast, otherwise it is fine. I am programming on MAC 10.7 with QT 4.8 here...
View Article