Passing signal from QML to C++ with parameter
Hi, I have an application where i want to pass signal from qml to c++. code in qml as signal blockUri(int uri) mainView.blockUri(index)// calling signal in c++ is as QObject *rootObject =...
View ArticleQt-SDK with Tutorial
Hello everyone. I am impressed with the many features Qt5 has and also with the many applications that come with Qt5 to ease the development process, my most sincere congratulations to the kids at...
View ArticleText To Speech on Qt
Hello all. I have a question, how can I do a text to speech on qt? I think I’ll need extra libraries for this, right? If no, plese, give me a way to do this. I’m doing a text editor/translator, and I...
View ArticleHow VLC implement the functionality of playing video in full screen mode ?
How VLC implement the functionality of playing video in full screen mode ? when you double click the black rectangle ,VLC will play video in full screen mode , then if I doubleclick again ,it should...
View Articlequint64 initialisation without Q_UINT64_C
Hi I have a 64 bit integer initialized like this: quint64 myInt = 18446744073709550616; I get no compiler error (MSVC2010-32bit). However the documentation on this says: — typedef quint64 Literals of...
View ArticleHow to draw custom text cursor in QTextEdit?
I would like to change the text cursor’s shape (not the mouse cursor) in QTextEdit and using the setCursorWidth(int width) method with 8 or 10 (so the shape becomes block) is just fine. But the problem...
View ArticleQ3ListView repaint problem
Привет, У меня проблема с прорисовкой в “Q3ListView”, если кликнуть на елемент, то прорисовка не происходит, но елемент становиться вибраным. Прорисовка случается только в случае потери фокуса...
View ArticleConnecting to MS SQL
I am connecting to a MSSQL database with the QODBC driver. I am trying to do some SQL coding and stuff and asking questions on a SQL forum because I don’t know much about it since I’m rather new to...
View ArticleHow to update an element of DataModel from QML and request an update of the...
Hello, I have an C++ based application which exports a data model to the DeclarativeContext. Displaying the data works fine what I miss is how to update single members of the dataModel from QML and...
View ArticlePerformance difference (Qt4 vs Qt5)
I’ve been seeing on a few different forums and mailing lists that Qt 5 has worse peformance thatn Qt 4 because the native graphics backend was removed. Has anyone done any benchmarks against Qt4 and...
View ArticleNeed advice about action RPG engine
I’m planning to make an action RPG (think Diablo) type engine. In case you’re unfamiliar, it has a top-down view, where the player is always in the center and can move around on a map in real-time. Is...
View ArticleMS Sql Stored Procedure with ODBC
For some things I have to do with my SQL table I was just recommended to use a stored procedure. I am not exactly sure how to call it in though. I believe I need to use a query and I understand with...
View ArticleQWebView/QWebPage distinguish right-clicked links from clicked links?
Hello. I have a simple browser based on QWebView/QWebPage. I would like my user to be able to ask for special treatment by right-clicking (control-clicking) a link. Or maybe shift-clicking, anyway a...
View Articleqt-project.org doesn't let me...
Okay, I so HAD to ask this question. I’m trying to change my profile picture to a photo of mine but there is no option to just upload a photo. It says I have to create a gravatar. Is this the only way?...
View ArticleQT5: Promoting widget inside a promoted form class
Hello there! I have a MainWindow form. I put a widget inside it and promote it to my class 1. But my class 1 has a form that contains a widget promoted to my class 2. When I try to compile, it gave me...
View ArticleUnable to access 'Sample Music' with QDesktopServices::MusicLocation.
searchLocation = QDesktopServices::storageLocation(QDesktopServices::MusicLocation); qDebug()<<searchLocation; it gives me “C:\Users\Administrator.VIVEK-PC\Music”...
View Article[SOLVED] setAttribute and setBackgroundRole. Trying to set a dark background
Hello! I’ve tried to set the background colour with setBackGroundRole(QPalette::Dark); But didn’t work. Then I tried with setAttribute(Qt::WA_NoBackGround); And worked (at least it showed a dark...
View ArticleHow to create a TransparentWindow, using Qt5, with QtQuick1
I’m now using Qt5, but for some reasons I want to use QtQuick1, because there are some problems in my program when using QtQuick2.(mainly because of OpenGL) But eventually I still faced problems using...
View Articlepretty printers for Qt 5.0.0
Hi I developed a set of pretty printers for qt 4.8.3 that worked pretty well. When I come to use them with Qt 5.0.0 they are not working For example the printer for QVector looks like this class...
View ArticleBest approach for serial port
Hi, i’m using qexteserial port to managed a serial port, in this case the library is not the focus. The problem is the approach. At the moment i have a class serialport, where i’ve basic command to...
View Article