QToolBar::insertWidget allows to add a QWidget after a specific QAction.
Is there any way to add a QAction at a specific position?
Removing all actions and then re-adding them again after is my last hope !
...
The QT licensing seems very anti-learning, because afaik anything you develop with it can only be commercial if and only if its entire development was done while using a commercial license.
Ethics aside, if you're new to QT, play around with it using the non-commercial license (since you obviously wouldn't know at that point if you coul...
Hi all,
I am working on a plugin for a Cocoa application, and in order to use existing cpp code we decided to marry the Cocoa plugin with our existing Qt project via Objective-C++, which has been a lot to learn on the fly but is coming along well.
Anyways, I am stumped by my current problem. The design of this plugin is such that the a...
Which is the better option? Develop software for OVI stores (or) Andorid (or) Apple stores? Which is the future of mobile application development? Qt for Meego/Symbian and hosting in OVI store? or Developing application for android or Developing application for iPhone?
I wish to know the best platform to learn to pursue my career as a i...
I am looking for good embedded database that i can use for application developed using Qt. The applications target desktop users from various sites of a single large company. The database should be able to store data separately at each site and the data shall be merged with other sites as and when it is required.
...
i got a QString blabla = qtfiledialog::getOpenFileName();
now blabla gives me the full path and the exe like: C:/Program Files/imanoob.exe
but i only want the path like: C:/Program Files/
how to do this?
...
I have been scratching my head for a while thinking about the best way to remove singletons I stupidly added in the first place. For background, this application is a stock portfolio tracker. I currently have three classes which I thought would be the only instance:
Prices (a class holding a list of
historical prices, dividends,
spli...
I searched for hours but I found nothing about that.
I have a qtablewidget and by pressing CTRL while clicking on a column header
a would like to mark the whole column content. To get the column index is not
the problem: there is a sectionPressed signal which gives me the current
index I clicked. Can anybody help?
...
I have used QGraphicsTextItem in my MFC applications for text editing, then converted the results to a bitmap to show in the view (screen). But it has issues when printing. For example, if I print to a PDF file, the text is not scalable since it is a bitmap and the file size is also big.
How can I print the QGraphicsTextItem in the MFC ...
Hi! I'm trying to code a widget that utilizes HGE functionality. So I have subclassed from QWidget and overloaded paintEvent(). It works OK but troubles appear when I try to handle input. Events are handled only when mouse enters zone 2(link text) But I need to handle input in zone 1(where HGE is rendering). What should I do?
...
I'm trying to create a model to store data about photos, icons and pathnames.
class PhotoListItemModel : public QAbstractItemModel {
struct ItemModelType {
std::string fileName;
QImage image;
boost::shared_ptr<char> unique_id;
};
std::map<string, ItemModelType> ItemMap;
std::map<char*, stri...
I am trying to create a simple application for watching a screen in Qt. I have written my own server and client. At the moment the client simply sends a screenshot of the entire screen to the server so it can be displayed. I am just wondering if I can implement VNC into my server and client, or is there a way of comparing two images so I...
i got an QXmlStreamWriter and add some xml to it. when i do it first time its ok, but when i want to add text at end of file it dont work.
the only thing i got is first few lines i wrote good and formatted xml and the second thing i wrote is everything on 1 line. :S
how to fix this?
...
I'm trying to parallelize a number-crunching part of an application to make use of a quad-core architecture using OpenMP and GCC 4.2 on Mac OS 10.5. But what I think the problem is that this application uses Qt for the GUI and I'm trying to fork the worker threads on a secondary thread created by Qt which causes the program to crash - bu...
I am using Qt Creator. When I compile an application, are the .ui files turned into compiled code, or are they read and processed at runtime. I ask simply because I am looking at UI performance and if it is loaded at runtime I would imagine there would be some penalty to that?
...
I am writing a qt application, with the goal of it being portable to the 3 major operating systems.
I am using QFileDialog to select a folder, and then adding it to a QListWidget. However the folder name is being returned as E:/media even though I am on Windows. I would want it to return E:\media
I could use a simple string replace, bu...
I'd like to compile a static version of the Qt toolkit on the Windows platform (Windows XP SP3). I downloaded the latest release for Windows and successfully installed it. Then I opened the Qt 4.6.3 Command Prompt from the Start menu and invoked:
configure -static -release -nomake examples -nomake demos -fast
Configuration executes fin...
In my code I am creating new objects of same type inside loop and connecting a signal to object slot. Here is my trial.
A * a;
QList<A *> aList;
int aCounter = 0;
while(aCounter < 2)
{
a = new A;
aList.push_back(a);
connect(this,SIGNAL(somethingHappened()),aList[aCounter],SLOT(doSometing()));
aCounter++;
}
When somethingH...
Hello,
We're building a Windows and Mac app using a commercial licence of Qt, which we're building from a git clone.
We've got a build setup using Hudson with potentially several build agents, and what I'd like to do for Windows at least is build once then deploy the build Qt to each agent (rather than have to build Qt on each agent)....
I downloaded open-source version of Qt from the site and have compiled it with nmake, but I'm having trouble using it in my projects. It seems that Visual Studio can't find the Qt headers, even though I added the paths to my PATH, INCLUDE, and LIB variables. I tried installing the Qt Visual Studio add-in but it only supports Visual Studi...