black stripes in shapedclock example
-
I am sorry that I took up you precious time,because I can't help your solve the problem, I have not used this strangely shaped dialog,so I came here with a learning attitude,and by the way,I would like to make a small suggestion:since the code of your second test example is concise,why not drag the ellipse aside and show the code?
-
Hi
It looks like a gfx driver issue as there is no real reason for the lines Qt wise.Can you show your code for the second test ?
So we can try run in here and see. -
@mrjj said in black stripes in shapedclock example:
Hi
It looks like a gfx driver issue as there is no real reason for the lines Qt wise.
Can you show your code for the second test ?
So we can try run in here and see.Hi, thank you very much for a quick reply!
Here is all my code (only two strings of code, the rest is by default):
#include "widget.h" #include "ui_widget.h" Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { QRegion region(rect(), QRegion::Ellipse); setMask(region); ui->setupUi(this); } Widget::~Widget() { delete ui; }
I wanted to port my big project from MFC to Qt and know i really upset and dont know what to do(( Because my MFC code is using many custom shaped windows...
-
rect() is not correct here I would guess since in the ctor the size of the widget is not known. Do it in e.g. QWidget::resizeEvent()
-
@Christian-Ehrlicher said in black stripes in shapedclock example:
rect() is not correct here I would guess since in the ctor the size of the widget is not known. Do it in e.g. QWidget::resizeEvent()
Thank you, but this is not a problem that cause a black stripes...
I tried also like this:QRegion region(0,0,300,300, QRegion::Ellipse);
And take a look please on my first post, in default Qt example with the shapedclock i have the same behavior
-
And as @mrjj already told yu it looks like a driver issue since the example works fine for us. Update your graphics driver, try another os.
-
@Christian-Ehrlicher said in black stripes in shapedclock example:
And as @mrjj already told yu it looks like a driver issue since the example works fine for us. Update your graphics driver, try another os.
Driver is updated, i need a Windows as a target OS. Maybe there is another suggestions?
-
@al072 said in black stripes in shapedclock example:
Maybe there is another suggestions?
What else do you want to hear? It's working fine for us on Linux and Windows with Qt5.15 so it's for sure no Qt problem.
-
Hi
What Qt version are you using ? And win 10 or win 7 ?Also, if you try
https://doc.qt.io/qt-5/qtwidgets-widgets-shapedclock-example.html(its in Creator directly)
you also get these black lines ?
I tried that sample on win 10 and win 7 with Qt 5.15 and saw no issues.
-
@mrjj said in black stripes in shapedclock example:
Hi
What Qt version are you using ? And win 10 or win 7 ?Also, if you try
https://doc.qt.io/qt-5/qtwidgets-widgets-shapedclock-example.html(its in Creator directly)
you also get these black lines ?
I tried that sample on win 10 and win 7 with Qt 5.15 and saw no issues.
I installed Qt 6.0.0, using Windows 10 and yes i run a sample directly from Creator examples and it cause me an issue
-
@Christian-Ehrlicher said in black stripes in shapedclock example:
@al072 said in black stripes in shapedclock example:
Maybe there is another suggestions?
What else do you want to hear? It's working fine for us on Linux and Windows with Qt5.15 so it's for sure no Qt problem.
Easy man, i am really knew to Qt (the first day), and i am just trying to find out should i use this lib for my project and proceed for commercial using or not.
And why are you sure that this is no Qt problem? If it work in one PC and doesn't work in another?
If you don't have any suggestions just leave it, thank you anywayAnd sorry for newbie questions
-
This is daily debugging stuff. If it does not work for you but others say it's working for them then you have to search for problems on your side by e.g. using another version, using a working example, use another PC or others.
-
I found a solution, the problem was in scale and layout settings of windows display, i used a text scale of 175%, if i chose 100% shapedclock example works as expected without a black stripes.
But resolution is really small for me, all dialogs and buttons is really small, maube is there any workaround with it? Is it possible to draw a correct QWidget window under 175% text scale in windows settings?
-
Please provide a minimal, compilable example to reproduce the issue and create a bug report with this information.
-
@Christian-Ehrlicher said in black stripes in shapedclock example:
Please provide a minimal, compilable example to reproduce the issue and create a bug report with this information.
Ok i will make a bug report, but could you please tell ma how to create it and where? Link you provided doesn't work for me
-
@al072 Fixed the link
-
Here is a bug report : https://bugreports.qt.io/browse/QTBUG-90815
-
Thx, do you have a chance to test it with 5.15 to see if this is a regression during Qt6 development?