Add selectable & moveable *.ui-dialogues to QGraphicsScene
Hello, I want to create with QT designer a variety of dialogues, which are to be added as selectable and moveable items in a QGraphicsScene. I’m not sure if and how it works, because the data types do...
View ArticleIf LineEdit = X, close X tabs from QTabWidget
Hi! I’ve tried this code: if (ui->lineEdit->text() = "1") ui->tabWidget->removeTab(1);...
View Articleif i have assigned any shortcut to qaction, then keypressevent() of...
i have assigned shortcut say “QKeySequence(Qt::Key_Escape)” to a QAction , now if i am pressing Escape key , then my qgraphicsscene derived class MyScene keyPressEvent() doesnt call . it simply call...
View ArticleWrite int to QByteArray
What I’d like to do is to write an integer value of 1234 to a QByteArray so that the four bytes of the byte array look like: 12 34 00 00 Any help is greatly appreciated, Thanks, Harald
View Article[Solved] Can't dynamically add and display objects to QML from C++ (Qt 5.02)
Hi all, I’ve been trying to learn how to dynamically add objects to QML from C++ code, but all the code I write doesn’t work. I want to add an object defined in Unit.qml to the application’s window...
View Articleqpdfwriter and qpainter
Hello at all i have write this few line QPdfWriter pdf(nomefile+".pdf"); pdf.setPageSize(QPagedPaintDevice::A4); QPainter painter(&pdf); QFont...
View ArticleWait in for loop till QDialog closes
Hi, this might be pretty simple but obviously i cant find the right words to get an answer from google. I got a QMainWindow and in a function which contains a for loop that runs through a QStringList...
View ArticleDraw a graphic in qt designer
Hi, I should draw a graphic in qt designer about a real time process. This graphic represent PID Control. What tools or widgets I should use? Thanks
View ArticleКак к Приложению Qt Quick добавить Консольное приложение Qt
Здравствуйте Знатоки. Qt Creator 2.4.1, приложение по типу как Flickr Mobile c Qt примеров, но XmlListModel обращается к локальному xml файлу. Первое, на эмуляторе: указываю в XmlListModel, что xml...
View ArticleQT 5.1 Beta - Where to start with Android or IOS?
Hello there! I have just installed the QT 5.1 Beta installer for Mac OSX. Now I want to create some Android and IOS sample applications but I can’t manage to find sample projects or any tutorial on how...
View Articleqmake come with Qt5.1.0 (beta) has some problem(bug?)
os : mac osx 10.8.3 compiler : gcc4.8 The makefiles generated by the qmake of Qt5.0.2 and Qt5.1.0 have some differents It will always select the default compiler come with XCode(if I interpret the...
View ArticleÉxito empresarial con los sistemas erp
Las empresas, a través de la historia, han debido batallar con el control de sus propios procesos, siendo muchas veces batallas infructuosas, ya que muchas grandes empresas han padecido de pérdidas y...
View ArticleQt5.1beta1: Error when trying to compile program in android
Qt5.1beta1: Error when trying to compile program in android 16:05:28: Running steps for project untitled1… 16:05:28: Starting: “C:\Qt\Qt5.1.0beta1\5.1.0-beta1\android_armv7\bin\qmake.exe”...
View ArticleImage is cut in the right border when scaling in GraphicsView and Scene
Hi, I’m trying to scale a image to fit in the QGraphicView. Sometimes it works, but for example, if I load a image of size 1500×900, the resized image is cut a bit in the right border, even with the...
View ArticleObtaining a list of files in a folder via HTTP help.
Looking at the DownloadManager program example I see that I need a QNetworkAccessManager to manage the download and QNetworkRequest to fill out what I want, but here is where I get confused. Should I...
View ArticleQt Creator 2.7.0 reseting toolchain.xml
Hello, I have added MSVC 2012 manually to the toolchain.xml but every time I start qt creator it replaces the xml with a default (0 tool-chains) xml. is there any way to stop the creator from doing...
View ArticleProblem binding UDP (server) socket to an interface
I am writing a UDP server application that needs to know which interface received a request, so I can know what IP address to deliver in the response. To accomplish that, I am creating a separate UDP...
View Articleget Style from QPushButton
Hiho everybody, is there a way to get the current Stylesheet from a QPushButton? What I want to do is to tell a QPushButton to take the style from another QPushButton. The problem is that I have to...
View ArticleHow to start a qprocess for opening files with a batch file?
Hi everyone! I am trying to open a qprocess that must open a .bat file that will compile another file. This is what I tried: QProcess p; p.start("C:/beez.bat", QStringList()...
View ArticleWindows maximize button inactive with 5.1.0
Anyone else experience this? I updated to the 5.1.0 beta and the windows maximize button is now inactive for my QQuickView based UI. Anyone know if an API or default changed recently? The flags...
View Article