Hi
I'm writing a program(just for learning purposes, I want to learn C++) in the Qt framework. Is it possible to get how many monitors are connected to my computer and make the program start on different monitor? I want to have an option in the Properties menu where I can tell on which monitor to show the program.
I could not find anyt...
I'm using Qt Creator on Ubuntu to develop C. Whenever I run with the debugger, I get the message warning: GDB: Failed to set controlling terminal: Invalid argument. This happens even with a hello world program. How can I solve this?
...
Hi,
I have two widget mainwindow123 and second-class. In my MainWidget.cpp have one lineedit and button field. Initially I can set the focus on the line edit. But after come from the second.cpp Widget then I could not set the focus on the lineedit. Please help me.. Which place I did the mistake? Thanks in advance.
This is my code
MainW...
Hi.,
i am new QT. i am using QTableView to display the Data.
if any cell clicked, then i need to call the event to display the row number in QMessageBox.
which event i need to use, and how to call the event?
please help me to fix the problem.
...
I'm using Qt 4.3.1 (I'm not able to uptade at the moment) for a program, anyway in Windows dead keys (^, ´, `, ...) don't arrive at the keyPressedEvent(), i always have to press them twice.
So why don't those dead keys arrive? How can I fix it?
In MacOS everything works fine though.
Thx, eL.
...
Hi,
i have couple of query's with respect to DLL,
1)If i load the DLL in run time, i guess DLL will be in separate thread right?
2)If i call a function present in DLL, and that function takes much time to return the value then how can i make my application thread to wait till the DLL's function return value.
How can i solve the seco...
The following is a code snippet from a Qt Jambi browser application.
public void loadDone() {
statusBar().showMessage("Loading done...");System.out.println("kya 1");
System.out.println(browser.page().mainFrame().frameName());
List list=browser.page().mainFrame().childFrames();
for (Object frame :...
What's the recommended way to do unit testing of events for classes derived from QGraphicsWidgets?
Is there an equivalent to QTestEventList for QGraphicsSceneEvents? We need to simulate mouse events in QGraphicsWidgets.
Thanks,
Alex
...
I need to draw a complicated object with Qt primitives using QPainter. The thing is I really need to do this in a such uncomfortable way, because it's part of the task. So, is there a kind of WYSIWYG editor, when you just draw object like you would in Gimp or Paint, and get pre-made code for Qt? The object is pretty complicated to draw m...
Hello,
On a form designed with Qt Designer, I have two QGroupBoxes with a bunch of controls in each of them. Both group boxes have nearly the same contents (QLineEdits with associated labels).
What I want to do, however, is to align the controls together, as if they were part of the same grid layout. But since they are in separate cont...
I have a widget which I'm putting in a QVBoxLayout. This widget's layout is a QVBoxLayout which includes a QTableWidget. When I display this everything is fine but the QTableWidget only shows a few rows. How can I set the height of the table to a decent value (like 20 rows) while still allowing the table to resize?
I've tried calling ta...
I have been trying to get Qt X11 cross compiled for PowerPC for a while now and kept having various problems.
From the information given my Qt support, all one needs to do is:
Create a new mkspec
Copy an existing directory in mkspec/ I used linux-g++ and modified it.
Modify qmake.conf to use your toolchain, libraries and includes
R...
Hi,
What is the difference between these two types of pointers? As far as I can read, QSharedPointer can handle situation well, so what is the need for QSharedDataPointer?
...
Hi,
I've checked a satisfying explanation but could not find. Usually docs mention that in order to use signals/slots between threads, we need to use event loops and start them by calling exec.
However I can see that w/o using exec(), I can still send signals and handle them across threads.
What's the exact use of it?
...
Hi,
i am new to QT. i am using FrozenTabelWidget it's derived from the QTableView. how to get the selected row number. if the index changed(user click any cell) then i need to get that Cell Row Number?
my code is below:
//freezetablewidget.cpp
#include <QtGui>
#include "freezetablewidget.h"
FreezeTableWidget::FreezeTableWidget(QAbs...
I am having a super hard time compiling and using TagLib 1.6.3 in my Qt project. I've tried everything I can think of. TagLib claims that it is supported through CMake but I'm not having any luck. Furthermore, I'm confused about what kinds of files I even need for my Qt libs!
I've built *.a files, *.lib, and *.dll. From what I understan...
Hi folks!
How can I select a few elements in the QML ListView and send its indices to C++ code?
...
In QApplication if we call exec() then does a new process / thread start?
...
I am trying to build a Qt GUI Main Window project and get the following errors:
BLDMAKEERROR:Can't find "\Symbian....\BLD.INF
bldmake returned with exit value=1
In the last two days, I've re-installed above apps many times following all
installation guides; setting up the environment variables but nothing worked
out.
Kindly anyo...
I'm planning on using qActions for use globally in my application. The idea is to have an action to be available at any level in the widget parent/child hierarchy.
Let's say I have the following GUI:
+--------------+
| +----------+ |
| | +----+ | |
| | | W2 | | |
| | +----+ | |
| | W1 | |
| +----------+ |
| MainWindow |
+...