Translation doesn't work.
main.cpp int main(int argc, char *argv[]) { QApplication app(argc, argv); QTranslator translator; ...
View ArticleQFileDialog greying out non-selected entries
When I set up a QFileDialog – either with the easy static functions or with the constructors – to filter only a specific file extension. By default, the (non-native) QFileDialog greys out the not...
View Articlevisual studio addin user guide
Hi I have installed the visual studio add in and am looking for some documentation on its capabilities but to no avail. I would be grateful if someone could point me in the direction of a user guide or...
View ArticleUsing Cypress USB Library CyAPI.dll
Hello all, I have been trying to use the library CyAPI.lib provided by Cypress USB Suite 3.4.7 I put the .lib file in the lib/ folder in the project directory It comes with the CyAPI.h header file...
View Articleconvert QPlainTextEdit content to QString
how to get the text in a QPlainTextEdit and convert it to QString??
View ArticleQFileSystemWatcher + /sys/class/gpio
Hello. I run my Qt (4.8.4) application on Linux 3.2.18. Platform is AT91SAM9G45. I want to watch for changes in the file /sys/class/gpio/gpioXXX/value, which displays a current state of signal on one...
View ArticleHow to play mp3 with QMediaPlayer on Android?
I tried to use QMediaPlayer to play mp3 on Android but failed. I also built and depolyed the player example (Qt5.1.1\5.1.1\Src\qtmultimedia\examples\multimediawidgets\player) on an Android Pad, the...
View Article如何Android上播放mp3?
我的工程里面需要播放mp3文件。用QMediaPlayer来实现的,程序可以运行,但并没有播放出mp3。改用wav格式的文件测试也不可以。 player = new QMediaPlayer; // … player->setMedia(QUrl::fromLocalFile(”/Users/me/Music/coolsong.mp3”));...
View ArticleUsing QtQuick Location Map with C++ QGeoMap* items
I have a very trivial need, I have Qt Quick UI and I am using Location Map elementy to display map. I have C++ application logic that generates data to be displayed on map. My C++ code has...
View ArticleStyle a QTableView's cells to look like Header sections?
Is it possible to style a QTableView’s cells to look like Headers? I am trying to implement a QTableView that will act like a header for another QTableView. This is because I need a multiple-level...
View ArticleQImage::loadFromData QByteArray
Hi, I’d need some help with this. I have loaded a table from a database in a QTableView This table contains some records with images – bitmaps. They are stored as bytes, of course. So, I’d like to load...
View Articlesend color via xml (QDomDocument)
how to get the color of a qtextedit and send it to a server via xml?
View ArticleCan't compile with Qt 5.1.1
My problems getting my project up and running from Qt 4.8 to Qt 5.1.1 continue. When I try to compile my program, I get the following error (and 18 others, but this is the first):...
View ArticleРазноцветные прямоугольники вместо букв в программе на QML
Здравствуйте, помогите справиться со следующей проблемой. Моя программа на QML прекрасно работала на Qt 5.1.0 собственной сборки. При переходе на офицальный пакет Qt 5.1.1 (для Arch Linux) возник такой...
View Articlerefresh QMainWindow from another Dialog
Hi everybody, I want to add an Item in a QComboBox which is in my topWidget from another QDialog. The topWidget is in the QMainWindow. QMainWindow #include "testcombobox.h" #include...
View ArticleForce a x86 build from a x64 project using Qt Creator, Qt 5.1 x64 (Visual...
Hi, I have a global Qt Creator project with several modules (executables and plugins), using Qt 5.1 ×64 Visual Studio 2012. One of theses submodule is an executable, not using the Qt framework, that I...
View ArticleUsing Blur Behind on Windows with Qt 5
Back in September 2009 Jens Bache-Wiig [blog.qt.digia.com] wrote an article called Using Blur Behind on Windows [blog.qt.digia.com]. At the time, I think it was posted in the Labs section, but now, the...
View ArticleMSVC 2010 prebuild binaries for Qt 5.1.1
Is a pre-built binary available for visual studio 2010 and qt 5.1.1? (or any 5.1). When building my own, configuration script won’t take the -c++11 option (even though I’m using MSVC 2010). Use of...
View Articlestrange sizing behavior between QWidget and QMainWindow
I have noticed a strange widget sizing behavior between QWidget and QMainWindow. At first I’ve been using a QWidget to create my application window. Then I switched to QMainWindow because I wanted to...
View ArticleLooking for a remote C++/Qt/QML job
Hi. I am currently looking for a remote job. I have 5 years of experience in C++/Qt. During last 3 years I was working on several QML-based applications for touch devices, QML apps for Symbian and...
View Article