[Interest] ampersand in QDockWidget on windows and macOs

2021-12-24 Thread Alexander Semke
Hi all, in our application we're setting the window title for dock widgets via QWidget::setWindowTitle() like in https://invent.kde.org/education/labplot/-/blob/master/src/kdefrontend/ MainWin.cpp#L1224 On windows and on macOs additional ampersand is shown in the title text (https://imgur.com/JlA

[Interest] margins in QListView

2020-06-30 Thread Alexander Semke
Hi, I need to fix the size of a QListView to three items aligned vertically as on this image: https://imgur.com/a/lAMOHEB For this I need to know the size of the margins around the items. The margins of the view port and spacing() return zero. I think this is controled by the style options by I d

[Interest] how to reset the layout in QStackedWidget/QScrollArea

2020-05-27 Thread Alexander Semke
Hi, I have the following situation in the code: m_propertiesDock = new QDockWidget(this); addDockWidget(Qt::RightDockWidgetArea, m_propertiesDock); auto* sa = new QScrollArea(m_propertiesDock); stackedWidget = new QStackedWidget(sa); sa->setWidget(stackedWidget); sa->setWidgetResizable(true); m

Re: [Interest] Dockwidget show/hide animation

2018-09-20 Thread Alexander Semke
Hi, On Mittwoch, 12. September 2018 20:50:18 CEST Fábián Kristóf - Szabolcs wrote: > I want to implement animated showing/hiding (sliding in-out) of a > QDockWidget, currently I have implemented this: > https://www.youtube.com/watch?v=qBkvHQrQBO0 In this video you can see that > when I press the b

Re: [Interest] resizable QTextEdit

2018-04-15 Thread Alexander Semke
On Sonntag, 15. April 2018 19:08:14 CEST Igor Mironchik wrote: > > The only problem now is that the entered text is not shown in TextEdit > > with > > this new class. The text changes are accepted, but nothing is shown. Any > > idea here? > > The problem was in Text::resizeEvent(). I forgot to inv

Re: [Interest] resizable QTextEdit

2018-04-15 Thread Alexander Semke
Hi Tony, > Does layout::invalidate before activate help? no, this somehow completely blocked the resize... Calling updateGeometry() solved this problem. Regards, Alexander ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/

Re: [Interest] resizable QTextEdit

2018-04-15 Thread Alexander Semke
Hi Igor, > As a possible solution: > [...] Works now. I pushed a modified version of your code to our repository in https://cgit.kde.org/labplot.git/commit/? id=1cacf9f095b5e850baa58584b071986fbfe790fb The only problem now is that the entered text is not shown in TextEdit with this new class.

Re: [Interest] resizable QTextEdit

2018-04-15 Thread Alexander Semke
On Freitag, 13. April 2018 10:22:14 CEST Igor Mironchik wrote: > Something like this? > [...] Thanks Igor, I've got the idea. The resize works fine now but I have the problem with the layout of the parent widget being not updated. My text edit widget is embedded into a QFrame with a vertical layo

[Interest] resizable QTextEdit

2018-04-13 Thread Alexander Semke
Hi, one frequently sees form text fields on the web where the actual text field can be resized by the user by clicking on the resize-symbol in the corner of the text field and dragging it until the desired size is achieved. I'm wondering how to get this for a QTextEdit placed in a layout. Does

Re: [Interest] Qt Charts questions

2018-01-07 Thread Alexander Semke
On 04.01.2018 22:59, Murphy, Sean wrote: > I noticed that too, but unlike a lot of Qt mailing list topics, they more or less > "just work" and are "as-is" due to the clear and limited scope. I find that they work well if you're just trying to have one plot, but I'm struggling to get them

[Interest] ctrl+c in a read-only QTextEdit

2017-04-29 Thread Alexander Semke
In a read-only QTextEdit a CTRL+C event seems to be "converted" to a close event. CTRL+C in a read-only QTextEdit placed in QDockWidget closes the current MDI subwindow (https://bugs.kde.org/show_bug.cgi?id=379102): #0 PartMdiView::closeEvent (this=0xef0fa0, event=0x7fffd0f0) at /home/ale

Re: [Interest] QTreeView, QHeaderview, ResizeToContents and Interactive

2017-03-21 Thread Alexander Semke
On Sonntag, 19. März 2017 13:09:55 CET Alexander Semke wrote: > [...] > What is being delayed here? I'm not quite comfortable with the fixed timer > value and it doesn't work on my notebook for 0. Whatever is queued for > processing here, how to wait until it's

Re: [Interest] QTreeView, QHeaderview, ResizeToContents and Interactive

2017-03-19 Thread Alexander Semke
On Samstag, 18. März 2017 10:47:12 CET Alexander Semke wrote: > What I don't understand neither is that when doing > m_treeView->resizeColumnToContents(0); > > right after I set my model via m_treeView->setModel(my_model); like in the > loop above, the f

Re: [Interest] QTreeView, QHeaderview, ResizeToContents and Interactive

2017-03-18 Thread Alexander Semke
On Freitag, 17. März 2017 09:18:58 CET Etienne Sandré-Chardonnal wrote: > Sorry, I wrote too fast > The proper way to get the column width ist tableView->sizeHintForColumn(i) > So just do > > for(int i=0;icount();++i) > header->resizeSection(i, qMax(header->sectionSizeHint(i), > tableView->siz

[Interest] QTreeView, QHeaderview, ResizeToContents and Interactive

2017-03-16 Thread Alexander Semke
Hi, I have a QTreeView where after setting the model I call header()- >setResizeMode(QHeaderView::ResizeToContents) to adjust the column width to the content. Since I want the user to be able to resize the header sections manually, I call header()->setResizeMode(QHeaderView::Interactive) after t

Re: [Interest] find executable in Qt 4.8

2016-10-12 Thread Alexander Semke
> > in Qt5 we have http://doc.qt.io/qt-5/qstandardpaths.html#findExecutable . > > Is there something similar available in Qt 4.8, too? Can somebody point > > me to the proper static function? > > No, there isn't in Qt. That function existed in libkdecore during Qt 4 days. Thanks. KStandardDirs::fi

[Interest] find executable in Qt 4.8

2016-10-11 Thread Alexander Semke
Hi, in Qt5 we have http://doc.qt.io/qt-5/qstandardpaths.html#findExecutable . Is there something similar available in Qt 4.8, too? Can somebody point me to the proper static function? Regards, Alexander ___ Interest mailing list Interest@qt-project.or

Re: [Interest] double-buffering, quality drop

2015-02-06 Thread Alexander Semke
Am Freitag, 6. Februar 2015, 09:19:22 schrieb Reinhardt Behm: > I think you misinterpret (no offense intended) the concept of > [...] Thanks for the correction/clarification. > I think you should create a separate painter for painting on your internal > pixmap and use the supplied painter to paint

Re: [Interest] double-buffering, quality drop

2015-02-05 Thread Alexander Semke
Am Mittwoch, 4. Februar 2015, 11:22:15 schrieben Sie: > not sure how the graphicsitem comes into all of this, but no you cant draw > on it. Well, we use QGraphicsScene/View with QGraphicsItems. > you can draw on a QGraphicsWidget or you can derive from > QGraphicsItem and draw in its paint() meth

Re: [Interest] double-buffering, quality drop

2015-02-03 Thread Alexander Semke
Am Dienstag, 3. Februar 2015, 11:36:55 schrieb Felix morack: > we had a similar problem. We solved it by having the updatePixamp() > function set a flag and doing the actual drawing the in paint() method, ie: > [...] This is what Michael also suggested. I tried it, the quality of the pixmap is mu

Re: [Interest] double-buffering, quality drop

2015-02-03 Thread Alexander Semke
Am Dienstag, 3. Februar 2015, 11:29:05 schrieb Ilya Diallo: > Not sure it's related, but that reminds me of that old issue: > https://bugreports.qt.io/browse/QTBUG-25896 Yes, looks very similar... -- Alexander ___ Interest mailing list Interest@qt-proj

Re: [Interest] double-buffering, quality drop

2015-02-03 Thread Alexander Semke
Am Dienstag, 3. Februar 2015, 11:06:08 schrieb Michael Sué: > You can set a breakpoint in Curve::Paint, go up in the stack trace and look > for yourself. It is way more than just QPixmap pixmap(width,height). I'll do that. But maybe later :-) > But seeing your attachment I have another idea: Ther

Re: [Interest] double-buffering, quality drop

2015-02-03 Thread Alexander Semke
Am Dienstag, 3. Februar 2015, 10:59:44 schrieb René J.V. Bertin: > I have no experience whatsoever in doing this kind of thing in Qt, but > looking at the 2 images in the OP it strikes me that the image prepared in > the background simply has (been scaled up from) a much lower resolution. No, there

Re: [Interest] double-buffering, quality drop

2015-02-03 Thread Alexander Semke
Am Dienstag, 3. Februar 2015, 10:18:10 schrieben Sie: > Here I do not mean the image you attached to your first mail. I mean the > QPixmap you create in Curve::updatePixmap(), which is the one that then > gets scaled afterwards, which itself is the JPG you attached, or not? If > the QPixmap of Curv

Re: [Interest] double-buffering, quality drop

2015-02-03 Thread Alexander Semke
Am Dienstag, 3. Februar 2015, 09:40:02 schrieb Michael Sué: > 1) Does your QPixmap look correct if you save it to a file? No. > 2) We do something similar in a QGraphicsView derived class with the > following differences: > > - we use a QImage object (as we have to fill it pixel by pixel) > - we

Re: [Interest] double-buffering, quality drop

2015-02-03 Thread Alexander Semke
> Which Qt version? > https://bugreports.qt.io/browse/QTBUG-42330 > Is perhaps related? 4.8.5 in openSuse 13.1 Actually, without painter.setRenderHint(QPainter::SmoothPixmapTransform, true); the quality is even worser... But I don't really understand why this render hint has an effect at all.

[Interest] double-buffering, quality drop

2015-02-02 Thread Alexander Semke
Hi, I'm one of the developers of LabPlot, a KDE-application for interactive plotting and analysis of data. I'm struggling with a problem since long time that prevents the next release of the software. So, any help on this issue will be highly appreciated :-) To speed up the painting of large c

Re: [Interest] QGraphicsSceneMouseEvent, mapFromScene...

2014-04-29 Thread Alexander Semke
> Probably, you have messed up with screenPos() and scenePos() methods > of QGraphicsSceneMouseEvent class? Please, double check your test code. You're right. I really used screenPos instead of scenePos at one place... Thank you for the hint! Alexander ___

Re: [Interest] QGraphicsSceneMouseEvent, mapFromScene...

2014-04-28 Thread Alexander Semke
Hi Dima, > are talking about screen or scene coordinates? I meant sceenPos() of course... Alexander ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] QGraphicsSceneMouseEvent, mapFromScene...

2014-04-28 Thread Alexander Semke
Hi, I'm having here a problem with mapFrom/mapTo-functions. In a class derived from QGraphicsItem I override mousePressEvent and I get for mapFromScreen(event->screenPos()) a point that is different from event->pos(). Similarly, mapToScreen(event->pos()) doesn't lead to event->screenPos(). Why?

Re: [Interest] QGraphicsRotation in QGraphicsViewScene

2012-09-12 Thread Alexander Semke
Hi, Am Mittwoch, 12. September 2012, 17:19:26 schrieb Duan, Lin: > Hello list, > > I want to Rotate my QGraphicsItem by the axis behind the screen. [...] I guess, you'll have to combine translation and rotation and to somehow provide your own QMatrix4x4 to QGraphicsItem... http://en.wikipedia

Re: [Interest] Building Qt for debugging - libwebcore.a File format not recognized

2012-05-06 Thread Alexander Semke
Hi, > This resulted in the following error when Makefile.WebKit.QtWebKit tried > to build libQtWebKit.so.4.9.0: >From qt-webkit docu: "Note: Building the QtWebKit module with debugging symbols is problematic on many platforms due to the size of the WebKit engine. We recommend building the modu

Re: [Interest] Downloading file from QWebView object

2012-05-05 Thread Alexander Semke
Hi, > I created one web browser using Qt, Now I am in troble to download files > from my browser , how I can call the default save file dialog and save to > the dwnloaded file to disk when I click on the download link. Please help > me. My first idea was to point you to the Qt demo project webki

Re: [Interest] Building Qt for debugging - libwebcore.a File format not recognized

2012-05-05 Thread Alexander Semke
Hi, > This resulted in the following error when Makefile.WebKit.QtWebKit tried > to build libQtWebKit.so.4.9.0: why webkit is tried to be built, if you deactivated this with -no-webkit? Strange. What kind of errors do you get if you try to compile the debug version without deactivating webkit? >

Re: [Interest] Issue updating from kubuntu 10.04 to kubuntu 12.04 (pangolin)

2012-05-01 Thread Alexander Semke
> The first thing the "new" QtCreator (version 2.4.1) complains about is a > dialog with title "Error creating MeeGo templates" and the text "Unable > to create Debian templates: No Qt version set". If I continue (click > "Ok") and launch the build I get this error Try to deactivate the meego-plugi

Re: [Interest] QML and macdeployqt

2012-04-27 Thread Alexander Semke
Ok, I see now what I missed. Thank you both a lot! > this is my script that must be run after macdeployqt: > [...] I run your script and added in my code #if defined(Q_OS_MAC) QDir dir(QApplication::applicationDirPath()); dir.cd("QtWebKit"); QApplication::setLibraryPaths(Q

[Interest] QML and macdeployqt

2012-04-26 Thread Alexander Semke
Hi all, I'm struggling with a problem concerning packaging of an Qt-application on Mac OS X. The program compiles and runs well. Everything works just fine, until the macdeployqt-tool is invoked. After that the QML-based part of the application (mainly the startscreen with some funny animations