I have a html file with one <pre>...</pre> tag. What regex is necessary to match all content within the pre's?
QString pattern = "<pre>(.*)</pre>";
QRegExp rx(pattern);
rx.setCaseSensitivity(cs);
int pos = 0;
QStringList list;
while ((pos = rx.indexIn(clipBoardData, pos)) != -1) {
list << rx.cap(1);
pos += rx.matchedLength();
}
l...
Hi,
Guys could any one point it out to me a link to web page where I can find hierarchy of classes in Qt prefferably as a diagram (something in UML style)? I'm just starting to learn it and I'm finding quiet difficult to work with all this classes (well mainly with widgets and layouts at the moment) without knowing where are they belong....
Hi, I'm trying to create QTextEdit with some text, and in this text I have end of line signs (\n), but it is not accepted in QTextEdit object (whole text is displayed without any breaks). Any reason why? Could anyone help me with this?
Thank you.
...
Hi,
Anyone have any Idea why I don't have this function (setTextFormat) in my QTextEdit class?
Thanks in advance.
...
Hi All,
Currently I'm trying to develop some simple plot prototype and I'm struggling with some kind of white/empty sheet syndrome.
I'm back to Qt after 2 years, so I feel quite retarded.
My application should:
plot and manage custom layers of data
plot on custom canvas background
manage markers on plot
My plan is to use following...
I want to create an event in one Qt application that can be picked up by a seperate Qt application running at the same time. The normal sendevent function requires you to name the object which will receive it but I can't use that, I want it to be like a keyboard press event which filters through any open programs in the OS. Does anyone k...
When draggin items from a QListView, the dragged items are drawn along with the mouse cursor and drop indicator. How can I prevent this behavior and just get the drop indicator? I am dragging from huge list items into small targets, and this makes things pretty difficult to target as the drop area is hidden by the huge dragged items.
...
I'm not interested in the QNetWork class and all it's callbacks, I want a static function or something where I can just:
QString html = QHttpHelperThingy::fetch("http://blah.com");
Does such a thing exist?
...
Hello everyone,
I am using the Qt Graphics View framework to create a scene and attach multiple views to the same scene, where these views render a 3D openscenegraph scene as background and the 2D drawings are kind of overlays.
I am trying to intercept mouse/key events in my OverlayViewport class (inherits QGraphicsView) and navigate t...
Hi,
my question is about Qt and its QAbstractItemModel.
I have a map of strings and doubles (std::map<stringclass, double>) which I would like to present in a Qt widget. While I could use QTableView for that, I would like to exploit the fact that the keys of the map are of form "abc.def.ghi" where there can be multiple strings that c...
Hi,
Is it possible to compile a 64 bit executable in qt windows. Is it the same process as with 32 bit or any different.
Brgds,
kNish
...
How can I use LTI-Lib in QT?
...
The QTableWdiget is fabulous for simple grid displays. Changing colors, fonts, etc is straightforward.
However, I did not manage to give the grid a 'tighter' look with less vertical whitespace. I see that the Qt documentation talks (eg here) about
margin
border
padding
around widgets, but when I set these I only get changes aroun...
How would I go about parsing all of the "a" html tags "href" properties on a page full of BAD html, in Qt?
...
I'm trying to implement my own QDebug() style debug-output stream, this is basically what I have so far:
struct debug
{
#if defined(DEBUG)
template<typename T>
std::ostream& operator<<(T const& a) const
{
std::cout << a;
return std::cout;
}
#else
template<typename T>
debug const& operator<<(T cons...
Strange bug with a Qt dialog ( Qt4.6/windows)
If the dialog is started from MainWindow (from a toolbar/or menu action) and it is modal none of the text boxes will accept any edits. Other controls (drop down, buttons etc) all work.
If I make the dialog non-modal, with show() rather than exec(), it works perfectly!
Anyone come across a...
I would like to know if it is more efficient to use a int ** than a QList > or if they are pretty much equal. I have to do alot of calculations so I might want to get to faster one
...
Hi,
I'm trying to implement a show/hide widget animation. The widget is a QDockWidget and therefore is inside the QMainWindowLayout.
Using QPropertyAnimation doens't seem to work, I got something looking like that :
m_listViewDock->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
QPropertyAnimation* animation = new QProper...
I'm using stripped down as much as possible configuration of Qt but now I need to use the dbus and can't figure out what I need to include to be able to use it? There doesnt seem to be anything obvious to me using the qconfig tool. The errors I get at the moment when making are:
qdbus_symbols.cpp:53: error: expected initializer before ‘...
Several examples on trolltech use QWidget rather than a QMainWindow as the main window for simple Qt applications.
Now I need just a simple window with a single content widget (QGlWidget) that covers the entire client area.
However, when I show a QWidget window with a single content window it automatically resizes itself to be tiny.
I...