Hi,
I'm trying to use SVG graphics in QIcons. I have a static library that contains all my graphics resources, and a method in that static library that returns QIcons pre-loaded with the correct graphics. I'm trying to do this:
QIcon icon(":/icons/find.svg");
I have verified that that resources has been loaded by listing it with QDir...
Hi folks,
How I can acquire access to QTabBar of QTabWidget ? Through searching in docs and internet, I've found only solution: subclassing QTabWidget, and in some way giving public access to QTabBar instance (QTabWidget::getTabBar() has "protected" access modifier). Is there any other solution ?
...
I designed a QMainWindow with QtCreator's designer. It consists of the default central widget (a QWidget) which contains a QVBoxLayout with all the other widgets in it. Now everything I want, is that the QVBoxLayout automatically occupies the whole central widgets rectangle space.
How can I do this? I didn't find any usable property nei...
I'm developing a qt-based application and i would like to develop both 32 and 64bit version of the application on the same machine, sharing the same sources, scripts, etc..
The machine is an Ubuntu Jaunty 64bit, Intel Core i7, 8gb ram.
I'm aware that by running VMWare or VirtualBox could get things working, however it doesn't seem to be...
I was trying to perform basic authentication for Twitter from my Qt app. I use QNetworkAccessManager. But I couldn't find any help on this.
But I found a program called qsoapmanager which passes credentials in base64 through the header. Maybe I can do this with QNAM by setting header in QNetowrkRequest. But I failed to find a way.
In q...
QNetworkAccessManager::post function returns network reply object, is caller required to delete this or network access manger will take care of deleting it.?
...
Platform: QT, Windows XP
I am new to Qt. I want to show another window(what to do to open it as dialog) from mainwindow. I did "add New Item ->Qt Designer Form Class", named it say MyWindow. But how to show this MyWindow from mainwindow ?
...
Windows 7 Aero Theme has a brand new taskbar with extensions.
What is the current status of Taskbar Extensions (jump lists, etc.) support in Qt?
...
I realize that there have been similar questions, but they seem to have been from when Qt Creator was still in beta, so the answer might have changed since then:
We are going to start a project with a small amount of GUI that needs to work on Windows, OS X and Linux. So choosing Qt was a no-brainer, even though we have little experience...
Hi,
I want to use the VC++ toolset to build programs for XP and Vista, but I do not want to buy the IDE, because I want to use Qt Creator.
I would download the Windows SDK and the Windows Debugging Tools, but I'm not sure if this includes everything that I need (i.e: compiler, linker, nmake, debuggers). Has anyone used this approach? H...
Hello everyone,
i want to create an object of type QApplication which needs the main functions arguments argc and argv as an input:
QApplication app(argc, argv);
Since i am within a user defined function without access to the main function i want to define this arguments on my own. I have tried several approaches but i cannot get the...
Hello.
While building .pro project using QTCreator on windows, it will create an makefile and .o files in debug/release folder. Since i need only .exe, is it possible to configure QTCreator to put all intermediate files (makefiles, .o files etc) into something like c:\tmp and resulting .exe into specified folder like c:\out\debug or c:\...
In a Qt4 application, is it possible to tell inside a paintEvent() handler whether the repaint was triggered by a resize or not?
I have a widget which is very slow to redraw (a complicated plot), and I want to speed up resizes by just blitting a resized pixmap while the widget is being resized, and only redraw the widget when the resiz...
Hi,
I have set up the latest eclipse+cdt + mingw + qt + qt-eclipse-integration.
I have 2 Problems:
When i create "New -> Qt Gui Project" it doesn't add the mingw includes (when i click new c++ project it adds them)
I would like to use boost, too. How do I tell eclipse/qmake to add the .lib's ?
Thank you
Chris
...
What is the process behind making custom widgets (using Qt) that don't look...well...ugly?
I know it is fairly trivial to make a "custom widget" that has say, a listbox and a pushbutton slapped together into one, but how would I go about making something that looks more like this:
QAnalogWidgets
I have made some rough mock-ups that ba...
Hi guys,
I'm adding a contextmenu to a QTableWidget dynamically:
playlistContenxt = QAction("Add to %s" % (currentItem.text()), self.musicTable)
playlistContenxt.setData(currentData)
self.connect(playlistContenxt, SIGNAL("triggered()"), self.addToPlaylistAction)
self.musicTable.addAction(playlistContenxt)
currentItem.text() is a play...
I am just starting up a new project that needs some cross-platform GUI, and we have chosen Qt as the GUI-framework.
We need a unit-testing framework, too. Until about a year ago we used an in-house developed unit-testing framework for C++-projects, but we are now transitioning to using Google Test for new projects.
Anyone have any expe...
I have a parent window in which a push-button's click event function has the following lines:
SplashScreenDialog *splScrDlg = new SplashScreenDialog(this);
splScrDlg->show();
What I want is I want to remove the maximize button, minimize button, close button and also the title bar from the dialog(or window). [Actually it is for a splash...
I'd like to get the length of a media file in a qt application i'm building and so i decided to use taglib. This is the methos that is meant to read the length
void loadMetaData(QString file) {
QByteArray fileName = QFile::encodeName( file );
const char * encodedName = fileName.constData();
TagLib::FileRef fileref = TagLib::...
I want to have a plotting widget in my Qt application. Qwt provides such a widget with QwtPlot. However, I can't find any way to only display a certain part of the complete range of my data.
Specifically, I want to display spectrums with a frequency range from 0 to 2^14. For the GUI however, only the audible range from ~20-20k Hz is of ...