I'm trying to write a COM++ object wrapper around a Qt widget (control) I wrote so I can use it in future .NET projects. e.g.:
public __gc class comWidget;
In the compile directory are the .exe, an exe.intermediate.manifest, and the comWidget.obj, and also some other crap files (.pdb, etc). So what/how do I import into .NET? I feel...
Hi,
I am currently writing a program with Qt to organize movies.
I create a QTableView and a QSTandardItemModel, I want the user to be able to drag and drop a movie from the explorer in the view to add it to the movie list.
I currently am able to drag and drop any file in the program, but i only want the user to be able to drop avi or ...
I'm looking for an example on how to freeze the last row in a QTableView?
...
I'm trying to use the method described here to use a QPainter and GDI calls on the same widget.
Unfortunately this tutorial seem to have been written on an earlier version of QT and now it does not work.
I set the WA_PaintOnScreen flag and reimplement paintEngine() to return NULL.
Then on the paintEvent() I create a QPainter, use it an...
Hello,
I am using Qt for an assignment I have for college, and I want to use QTabWidget to display a chat window much like Pidgin's. I want to make the "group chat" tab always open and impossible to close and the rest of the "private channel" tabs closable.
QTabWidget's setTabsClosable(bool) is not helping ...
any ideas?
ty
...
Hi,
I am writing an application which requires me to use another file system and file engine handlers and not the qt's default ones. Basically what I want to be able to do is to use qt's file dialog but have an underlying file system handler (for example built using boost file system library) of mine handling all the operations with reg...
I'm trying to write a library to separate all the disk activity out into its own thread, but the documentation doesn't really care about such things.
What I want to accomplish is that aside from startup, all disk activity is asynchronous, and for that, I need to wrap every class that accesses the disk. Here's what I found so far:
QtCor...
hello i'm learning qt and i'm doing the folowing to add some widgets to a graphics scene
void MainWindow::addWidgets(QList<QWidget *> &list, int code)
{
if(code == CODE_INFO)
{
QWidget *layoutWidget = new QWidget();
QVBoxLayout *layout = new QVBoxLayout();
foreach(QWidget *w, list)
{
...
Hi Geeks,
I am using a QStackedWidget on my mainWindow. The firstPageWidget on stackedWidget contains 3 buttons. Now If I will press the first button on firstPage, I want the stackedWidget show the 2nd Page widget. Following are the details
I tried to connect like this in my mainwindow
connect(firstPageWidget->button1,SIGNAL(clicked()...
We are in the process of designing a tool to be used with HDEM(High Definition Electron Microscope).We get stacks of 2D images from HDEM and first step is 'detecting borders' on the sections.After detecting edges of 2D slices ,next step is construct the 3D model using these 2D slices.
This 'border detecting' algorithm(s) is/are impleme...
Hey,
Consider the following XML file :
<cookbook>
<recipe xml:id="MushroomSoup">
<title>Quick and Easy Mushroom Soup</title>
<ingredient name="Fresh mushrooms"
quantity="7"
unit="pieces"/>
<ingredient name="Garlic"
quantity="1"
unit="cloves"/>
</recipe>
<recipe...
i'm trying to start Microsoft word using QProcess as following:
QString program = "WINWORD.EXE";
process->start(program);
but nothing happens...
winword.exe is on path (so when i type winword.exe word is openning up)
is it the right way to do so ?
...
Part of my application involves rendering audio waveforms. The user will be able to zoom in/out of the waveform. Starting at fully zoomed-out, I only want to sample the audio at the necessary internals to draw the waveform at the given resolution. Then, when they zoom in, asynchronously resample the "missing points" and provide a clearer...
i'm trying to retrieve the active processes on my computer and to search for specific one,
if it exists then i should kill it.
is it possible to do it without knowing the specific path of the execute ?
i know the execute process name but not the full path.
so in short:
1. get all active processes
2. kill specific process
thanks !
...
I'm familiar with the way Qt uses D-pointers for managing data. How do I do this in my code?
I tried this method:
1) move all data into a struct
2) add a QAtomicInt to the struct
3) implement a = operator and change my constructor/deconstructor to check-up on the reference count.
The issue is, when I go to do a shallow copy of the obj...
Hi all,
I have a header file with all the enums listed (#ifndef #define #endif construct has been used to avoid multiple inclusion of the file) that I use in multiple cpp files in my application.One of the enums in the files is
enum StatusSubsystem {ENABLED,INCORRECT_FRAME,INVALID_DATA,DISABLED};
There are functions in the applicati...
For whatever reason, std::cout does not display anything with my application. The description of my development environment follows.
I am working on a Qt application using Qt Creator. Since Qt Creator can't be launched from my station (XP64), i am currently developping it with Visual Studio 2008 and the Qt plugin (by importing the .pro ...
Hello!
I'm looking for a basic code samples of how to upload files to server with HTTP POST method on Qt.
My task: I have simple Qt program and I need to select any image file from the local host and upload it to the server. The selection part and GUI is simple and I have already done it, but with POST uploading I'm confused. In additi...
Hello all
im trying to send rest api Users.getLoggedInUser
i have all the secret session and all the Authenticationi made
according to this site :
http://wiki.developers.facebook.com/index.php/Authorization_and_Authentication_for_Desktop_Applications
here is my code (cpp QT but it can be any thing else ) :
QString toAPISignature =
...
I would like to test an asynchronous request to a webserver. For that purpose I'm creating a simple unittest to quickly try a few lines of code:
void AsynchronousCall::testGet()
{
QNetworkAccessManager *nam = new QNetworkAccessManager(this);
QUrl url("http://myownhttpserver.org");
QNetworkRequest req(url);
this->conn...