I'm trying to put a new customized widget when the user press a button, using layout->addWidget(mywidget) where layout is a QVBoxLayout, but it's not working.
Tried:
- Passing this to the widget constructor as parent
- Passing the layout pointer as the parent
- Passing 0 as the parent
- The scrollArea pointer where the customized widge...
I have a tabbed widget and all tabs have the same layout so I want to move the widget when the user changes tabs. What would be the code for this. I have tried a few things but it always seems to be missing one thing. the following only worked once but not from the slot called when the current tab is changed:
txDiag_1 is a custom widget...
In the tutorials for QTestLib, there are references to the files "testgui.moc" and "testqstring.moc" (one example can be found here: http://www.englishbreakfastnetwork.org/coverage/build/qt-copy/examples/qtestlib/tutorial3/.moc/debug-shared/testgui.moc). These include several pieces of information required to configure the tests. Unfor...
I'm adding a bunch of QActions to my main window's menus. These actions can also be triggered by the keyboard, and I want the shortcut to be visible in the menu, as usual, e.g.
-----------------
|Copy Ctrl+C|
-----------------
I can do this using QAction.setShortcut(). However, I don't want these QActions to be triggered by the s...
Recently ,I come across this problem as I memtioned in this Title.
I have tried by using QThread::terminate(),but I just can NOT stop
the thread ,which is in a dead loop (let's say,while(1)).
thanks a lot.
...
including the maya ( 3d application ) classes in qt program gives lot of errors..... i have added all required include paths and libs...the same problem persists ....
this is pro file for my qt project
TARGET = FileCon
TEMPLATE = app
SOURCES += main.cpp \
dialog.cpp
HEADERS += dialog.h \
ConvertFunction.h
FORMS += dialog.ui
LIB...
I wrote a quick test app to use the google analytics scripts in a client app. It works fine using QWebView and
QWebFrame* pFrame = m_pWebView->page()->mainFrame();
pFrame->setContent(arrayHtml);
pFrame->evaluateJavaScript(strScript);
But no matter what I do I cannot get it to release memory. Every time I call the script it keeps addi...
I have an application wich is minimized to the tray (showing an icon) when the user close it. What I need to know is how can I call it back with a combination of keys, like Ctrl+Alt+Something. Actually I call it back when I double-click it, but it will be nice to do the same on a keystroke. Here is a portion of the code:
# -*- coding: u...
I'm trying to install Windows 7 64bit (as oppose to 32bit), mainly because large amount of RAM would be wasted otherwise.
I wonder if I should install Visual Studio 2008 32bit OR 64bit. I also uses Qt 4.5/4.6 for development, does it play well in 64bit environment?
Any suggestions on what will be a most recommended configuration?
...
Hello Everybody,
I want to put an in ICON into a push button.. the code should work like that:
self.printButton = QtGui.QPushButton(self.tab_name)
self.printButton.setIcon(QtGui.QPixmap('printer.tif'))
self.printButton.setGeometry(QtCore.QRect(1030, 500, 161, 61))
But instead, it gives the error message:
TypeError: a...
I have never seen this being done anywhere in all the source code i've read in my life. If it is considered bad programming practice, there has to be a reason for it which i fail to understand. Also, I think it sometimes improves readability rather than worsening it. Here are a few places i've done it in my ruby code.
@pushButton.conne...
Hello.
I have a QT 4.6 application (C++ language) and i need to add python scripting to it on windows platform. Unfortunately, i never embed python before, and it seems to be a lot of different ways to do so. Can anyone share his wisdom and point me into some articles/documentation i can read to perform a specified task in less painful ...
How can i create a partially transparent window with rounded borders (no standard borders)?
(i used Qt::FramelessWindowHint to disable standard borders)
I tried stylesheets, but "border-radius" and "opacity" doesnt seem to have any effect on the window, it only works on children of the enclosing widget.
My second idea was, to make the...
Hi everyone,
I'm facing a pretty strange problem and I need some help from your brains :)
1) I'm using Qt 4.6.0
2) I want to enable drag&drop (Qt::MoveAction with QAbstractItemView::InternalMove only) on items in a treeview.
3) I have my own model and a proxy model used to perform some sorting...
4) Drag&Drop works well except for o...
I have 20 digits that I would like to associate with strings. Is there a faster way besides using a switch case I can do this with. Basically I need to convert an int to a correponding string and the numberes arent necessarily packed. Maybe there is something in Qt as well?
for example 1 would be used to get "Request System Info"
2:...
Hi, I'm using Qt 4.6.0 in Leopard 10.5.8. I have a few sliders. Every time I slide/click on a slider, it gets focus in Windows. However, it does not get focus on Mac. I have to manually click Tab to change focus. How to rectify this? Thanks in advance!
...
I'm working with a not so small tree structure (it's a Burkhard-Keller-Tree, > 100 MB in memory) implemented in C++. The pointers to the children of each node are stored in a QHash.
Each node x has n children y[1] ... y[n], the edges to the children are labeled with the edit distance d(x, y[i]), so using a hash to store the nodes is an...
Hello all,
My friends and I are working on a compiler design as a project in my university (Damascus University).
We're using (Flex, C++, Bison, Qt) to do the job.
I was wondering if there is a way to design an IDE to our compiler using Qt. I know how to do the job but I'm asking to find out if there is some resource to start with, or...
The doc says it "Dumps information about signal connections, etc. for this object to the debug output."
How does one set the binding of Qt's "debug output" to a file or stderr or something?
...
On Linux would like to have a set of menu items which are mutually exclusive and have the currently selected one be designated by a radio button instead of a checkbox.
Is there a way to do this in Qt v4.4.3 easily?
...