Native Mac Views in QT App - Problems with focus/events
Hi, i’m using Cocoa’s NSTextView and NSScrollView in a QT 5.0.2 Application. As there isn’t QMacCocoaViewContainer supported any more in qt5, i have to add the NSViews myself, by the following way:...
View ArticleQTextEdit + Singleton = Memleak?
I am using Qt 4.8.4 and if I make a singleton out of a QMainWindow and assign a QTextEdit, I get a huge memory leak. Any ideas? class Window : public QMainWindow { Q_OBJECT ...
View ArticleQTabWidget remove tab problem!
Hi, In my application I use a QTabWidget instance as the QMainWindow central area. The tabwidget contains n tabs. This slot is to remove a tab : void MainWindow::closeTab(int index) { ...
View Articleusable c++ open gl newbie tutorial
I had no trouble getting into visual studio but I am having issues finding my way in Qt. I cannot get anything of the example scenes to compile. I am trying to use qt as an opengl binding for c++—but...
View ArticleQTextCodecs causing application crash!! need help.
Hi all, I have a problem with my application crashing probably due to text encodings transformations but i can’t figure it out.I want the application to run normally when before march 2014 and display...
View Article[Qt /cookie] - How send post on website (phpbb3)
My english is low. I have problem: I can’t send message on forum phpbb3. I can login. I can’t send message. Login to forum is success. Sending a post is not doing. My source code: dialog.h #ifndef...
View Articleمشتق کردن از shared library
سلام بچه ها. من متوجه شدم که نسخه جدید gcc اجازه نمیده که یک کلاس از کلاس دیگه ای بدون داشتن فایل های obj مشتق بشه. یعنی یه کلاس رو inherit کنم از یه کلاس که فقط فایل های header رو دارم. ولی من به این...
View ArticleGlaring flaw in drawing grid lines for QTableWidget
This is part question, but mostly a bug report. I’d really like the Qt developers to see this. When using a QTableWidget, the user has the option of enabling the drawing of grid lines. I’ve found that...
View Articleinclude referenced objects in a query
Hi! I have an object type A with a reference to another object type B. I would like to query some objects of type A and include the referenced objects of type B. Does anybody have a simple example for...
View Articleنصب serialport
سلام دوستان من آموزش این لینک رو متوجه نمیشم http://qt-project.org/wiki/QtSerialPort میشه یکی مرحله به مرحله و از طریق خط فرمان بگه چه دستوراتی رو باید وارد کنم؟
View ArticleCommunication between Qt GUI and separate C++ program
Hi, I am new to Qt. I have code running calculations made by C++ core language and STL, on Visual Studio. Recently I installed Qt in order to create a GUI (with Qt Designer) to let enter parameters...
View ArticleHow can I install Qserialport?
Hi I have wrote this instruction : http://qt-project.org/wiki/QtSerialPort but I couldn’t undrestand and success to install it? May someine writes the commans I must write in terminal to install it? I...
View ArticleWin 7/64 + Eclipse/64/Juno + c++ + QT4.8.4 with Eclipse Integration will not...
Hello, can anybody give some help or can tell me an Workaround. I want to program serveral calculation prorgrams with a QT-GUI. But in the Moment it is an nightmare with QT. Tanks
View ArticleQextSerialPort, dTxfrUSB and microcontroller Arduino - read from device
Hi all, I would like to design GUI for microcontroller Arduino in Qt Creator. So I have looked at internet and found aQtLow (https://code.google.com/p/aqtlow/) which has its own communication library...
View ArticleSending infomartion like double and image with TCP
Hello, I’m new with Qt and I want to transmit some information about TCP. I use a QByteArray and a QDataStream for sending: QByteArray block; QDataStream out(&block, QIODevice::WriteOnly);...
View ArticleCSS, 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 Article