QFileDialog.setFileMode() gives wrong behaviour under Windows
I am creating an instance of QFileDialog (Qt5.0.2.) which I want to use to allow the user to select a directory. After creation but before showing the dialog, I am executing the...
View ArticleAutosave and password protection help?
Hello all, I have a classroom cash program I have been writing for a while. It works really well, but there is one thing I have yet to fix: I need to have the password file set up, and I need to have...
View ArticleTrigering a repaint event
Hi all,I am trying to get a window to be repainted after some set up and I find it weird that it is not being repainted after calling update() .I have even called repaint() on the window and nothing...
View ArticleMultiple timers problem
I want to use two timers to update graphics on the screen. I have two timers. The first is connected to a slot to change the graphic every 150ms and repeat after 10 iterations. The second is to...
View ArticleAjuda acerca de conetar a uma WIFI AP com QT
Boas. Tenho este codigo que faz uma lista de coneccoes de rede(ppp0, em1, wlan0) na minha máquina void MainWindow::ListarConecoes(){ QList<QNetworkConfiguration>...
View Articleqt 4.7.4 qml/c++ app under valgrind
I am running valgrind on my qml/c++ app and I get a number of unit warnings such as: ==6119== Conditional jump or move depends on uninitialised value(s) ==6119== at 0x5CEAFDA:...
View ArticleQTreeView add data before expand item
Hi all I have tree that related with objects in DB, user not use tree all the time, but sometimes user want to see list of objects in some folder and I should fill this folder before expand. I am use...
View ArticleQSqlDatabasePrivate::database: unable to open database
I’m getting the following error when trying to run a qt project: QSqlDatabasePrivate::database: unable to open database: “could not connect to server: Permission denied Is the server running locally...
View ArticleDeployed application getting close silently at execution [Windows]
I deployed application on another windows machine as explained here [qt-project.org] . My application work fine on development machine but on deployed machine its keep getting close silently without...
View ArticleMalware detection in 5.0.2
I’ve just hit a positive detection of malware in the mingw build of 5.0.2, in xmlpatterns.exe and xmlpatternsvalidator.exe According to comodo antivirus, the threat is identified as high risk...
View ArticleHow to get QQmlEngine from QQuickItem
I have a QQuickItem, I want to create QQuickText items dynamically in it according to the text property. Because this QQuickItem is a kind of plugin, so I can’t get the QQmlEngine directly from the...
View ArticleAccess to UI elements from another class qt-c++
Hello, I have a problem with accessing ui elements from another class(with instance). I have a second QMainWindow in my application, I can access in mainWindow.cxx, write.cxx and secondWindow.cxx class...
View ArticleQt Multimedia 5 - Video codecs (ffmpeg) - possible?
Hello I’m trying to display different multimedia formats inside my applicaiton. I chose qml because it provides me with some fancy icandy i can easaly sell to my chef. Since Qt uses gstreamer i assumed...
View ArticleQXmlStreamReader !
hi, i have in my application to convert, to a graphic item, this XML code : <place id="cId175-i943123747"> ...
View ArticleSolved:VS2012 win32: fatal error LNK1107: invalid or corrupt file: cannot...
Oops. Included .dll instead of .lib
View ArticleChange corner icon on QStatusBar
Is it possible to change this corner icon on a QStatusBar? Preferably using a Style Sheet. If i write somthing like QWidget { color: #ff0000; } It does seem to be affected, but so...
View Article[SOLVED]assign three slot to one signal.
Hi, i want assign three button’s slot to a signal. class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: ...
View ArticleUse independent resource for each thread in the QThreadPool
Assume I am processing a bunch of heavy data(1000 of them) by QtConcurrent::mapped auto result = QtConcurrent::mapped(image_id, std::bind<std::pair<QString,...
View ArticleChange background of QMainWindow without affecting anything else?
I only want to affect the background of QMainWindow. I tried using: QMainWindow { background: #5f5; } …but it strangely only affects the corner around the DockWidget (cyan). I can use...
View Articlesubclass QGraphicsPixmapItem and paint(draw) on pixmap() directly
I want to create a custom QGraphicsPixmapItem and be able to draw on pixmap() directly. Any Suggestions? This is what I want to do: void myPixmapItem::drawLineTO(const QPointF &endPoint) {...
View Article