Two shortcuts for a QAbstractButton
I need to assign two shortcuts to a QAbstractButton, but I cannot find a way to do that. It seems the only method is QAbstractButton::setShortcut(const QKeySequence & key). Is it possible ? ...
I need to assign two shortcuts to a QAbstractButton, but I cannot find a way to do that. It seems the only method is QAbstractButton::setShortcut(const QKeySequence & key). Is it possible ? ...
I try to do the following: QList<QString> a; foreach(QString& s, a) { s += "s"; } Which looks like it should be legitimate but I end up with an error complaining that it cannot convert from 'const QString' to 'QString &'. Why is the QT foreach iterating with a const reference? ...
Is there a way to show an Internet Explorer instance/frame inside a Qt Widget? I need to show a web page in my application (just show, no need for interaction), and while I read about WebKit for Qt, I'd like to know if there is another way without it, since I'm trying to keep the application as small as possible, and it would make me ver...
I have a open file dialog with three filters: QString fileName = QFileDialog::getOpenFileName( this, title, directory, tr("JPEG (*.jpg *.jpeg);; TIFF (*.tif);; All files (*.*)") ); This displays a dialog with "JPEG" selected as the default filter. I wanted to put the filter list in alphabetical order so...
What's wrong with TextLayoutTransition? Can function pointers not be declared virtual? LCDWrapper.h:23: error: function definition does not declare parameters Here's the class. class LCDInterface { public: // Slots virtual void TextSetSpecialChars() = 0; virtual void LayoutChangeBefore() = 0; virtual void LayoutC...
Can you please give me Resources(Books, Tutorials, Other useful links ) to learn QT/Embedded 4.5, To get quick start in QT programming. P.S. I am quite familiar with windoing system programming and C++. ...
I am writing a login window in Qt. When the users clicks on OK, it should close the login window, show a "Connecting to server..." Widget, and open the main window once the connecttoserver method has done its job. However, the widget appears only when the main window is shown, and disappears immediately (it shouldn't even close!) How...
Can I write custom Qt widget in pure C++, compile it and use in PyQt? I'm trying to use the ctypes-opencv with qt and I have performance problems with python's code for displaying opencv's image in Qt form. ...
I'd like to experiment with Google's tcmalloc on Linux... I have a huge project here, with hundreds of qmake generated Makefile's... I'd like to find a way to get gcc to globally link against tcmalloc (like it does with libc)... Is this possible? Or will I have to edit every Makefile? (I'd prefer not to edit all the pro files as there a...
I have QTable widget, where I set setVerticalHeaderItem(0, QTableWidgetItem("some header", 0)) I set a contex menu by setContextMenuPolicy(Qt.ActionsContextMenu) and it works fine on my table's elements other than 1st column, i.e. a VerticalHeaderItem. Basically, when I right-click on 1st column item a context menu doesn't pop up, ...
I have a Qt exe built from visual studio 2005(after taking the .cpp, .h, .moc, ui_ files) I have done some simple QSqlite queries. It works fine in my development pc. But in another pc it crashes for the line below: QSqlDatabase mSqlDb How to run the exe so that it can interact with sqlite from another pc. [Any...
Qt 4.5 (PyQt 4.6.1) I'm looking for a widget similar to a QComboBox that automatically filters its entries to the ones starting with the input in the text field. There are around 300 items in the combo box. I've tried two approaches: QLineEdit with QCompleter Advantages Filtering the items works. Disadvantages Doesn't show a po...
Hello, I am working on an application which uses the QInputDialog command to get a value from the user. The value is then used in several computation in the application. I want to modify the application in the following way: I want to the able to read several values from the user before the computations are performed. Any idea of what ...
What is the ideal method for blinking information on a display to draw attention to an error condition in some data in a natural fashion. Should the blink be all on / all off, or should there be an aspect of fast ramp up and down of brightness instead of instant on / off transitions? Should the blink be equally on and off, or should it...
Hello, How do I open a ressource file (qressource) using the command QDesktopServices::openUrl ? I tried several ways, but none seemed to work (for instance QDesktopServices::openUrl(QUrl(tr(":ressource.pdf")));) Thank you. ...
How do I overlay widgets in Qt? I want to create some widgets and place them out-of-layout, but rather tweak their size and position when some other widget's geometry is changed. Something like the buttons on the screenshot: ...
Hi, I wonder how can I export a Visual Studio C++ project to qt? I am using openCV and openMP so I would like to know about setting this libraries in qt. Thank you very much. ...
I'm using a simple QProcess-Project on a WindowsXP-Machine: QString program = "U:\\ffmpeg.exe"; QStringList arguments; arguments << "-i" << "U:\\clock.avi" << "U:\\tmp_jpeg\\foo-%03d.jpeg"; process.setStandardOutputFile("U:\\log.txt", QIODevice::Append); process.start(program, arguments); The Process works just fine, ffmpeg creates a...
I'm now with a idea to start the development of a bare bones Qt/GTK+-like framework, but I want to know some things before I start the creation of this project: What is the structure of GTK+ and Qt? Do I need to develop a window manager to build my own framework? Some resources to start? ...
Ok, so I'm having this problem tonight: [...] connect(startButton, SIGNAL(clicked()), this, SLOT(startCalculation())); connect(stopButton, SIGNAL(clicked()), this, SLOT(stopCalculation())); [...] void MainWindow::startCalculation() { qDebug() << "hello"; this->startButton->setDisabled(true); this->stopButton->setEnabled(t...