Re: Impossible to scroll page tabs (left-right) on Mac and how to compile
Nice. ;-)
See GIT commit in my previous post.
You are not logged in. Please login or register.
QElectroTech → Code → Impossible to scroll page tabs (left-right) on Mac and how to compile
Nice. ;-)
See GIT commit in my previous post.
If you can found for mouse scroll tab.
https://doc.qt.io/qt-5/macos-issues.html
https://github.com/bjorn/tiled/commit/d … 5769940289
Interesting!
Should it be inserted and compiled?
I think you can try to adapt it maybe in projectView.
I could try even if I am so clumsy as you have seen.
But I think I need the updated Mac script to compile with right sources from git.
regards
Giovanni
Done, but you need to GIT clone before.
git clone git://git.tuxfamily.org/gitroot/qet/qet.git qet_git
And run script like this in a terminal :
bash /Users/laurent/qet_git/misc/MacQetDeploy.sh
Cheers,
Laurent
Is removed on macOS since Qt 5.5
https://bugreports.qt.io/browse/QTBUG-8428
https://codereview.qt-project.org/c/qt/qtbase/+/109523
https://codereview.qt-project.org/gitwe … 401401ff6f
I have put together whith sources suggested by you, a little app to test the QTabBar scroll on my Mac.
And it works.
Regards
Giovanni
Nice, if you have free time to add it in QET code?
I could try.
But I need to know how to interface with QET (in which source, with which pointer ...)
Regards
Giovanni
Look projectview m_tab and qetapp (QTabBar::tab).
Regards,
Laurent
Can't believe... It works!
I attach the sources without any .dmg file since it seems the forum-system doesn't like it.
On my Mac it works with the same behaviour (problem) of the test I posted before (scroll too fast etc.)
At the moment I have not separate my modifcations with "define" only for Mac OS.
If the code should compile and work also on other platforms it will be ok. If not I will insert the defines needed to isolate "Mac-only" code.
I can't upload all files in source folder.
Maybe all sources was too big.
I attach modified files.
Regards
Giovanni
Hi Giovanni,
thank you, it has compiled and run on my Debian machine, but scrolling is too fast to add on other platforms.
Mouse scroll jumps to 2 or 5 tabs, very difficult to use here.
Extracted a git patch for someone want to improve it.
Cheers,
Laurent
Maybe https://doc.qt.io/qt-5/qstyle.html enum QStyle:: https://doc.qt.io/qt-5/qstyle.html#SubControl-enum
I have seen folios scroll at the speed of light
Actually it was still a test-run. I am happy it compile on Debian too.
I am working to slow down mouse scrolls.
Thank you for the links above, I'll look at them.
Regards
Giovanni
The little example modified.
Plese try it. If you like it, maybe tomorrow I could modify qet source.
There are only few changes.
Regards
Giovanni
Same problem here, wheel is so fast on Debian and macOS too.
Maybe it's my mouse ? You could confirm it work slowly on your mac?
index 4 temp_index 4.8 -120 -4.8
index 0 temp_index 0 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 0 temp_index 0 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 0 temp_index 0 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 0 temp_index 0 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 0 temp_index 0 120 4.8
index -4 temp_index -4.8 120 4.8
index 0 temp_index 0 -120 -4.8
index 4 temp_index 4.8 -120 -4.8
index 9 temp_index 9.6 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 9 temp_index 9.6 120 4.8
index 4 temp_index 4.8 120 4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 0 temp_index -1.77636e-15 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 0 temp_index -1.77636e-15 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 0 temp_index -1.77636e-15 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 0 temp_index -1.77636e-15 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 9 temp_index 9.6 -120 -4.8
index 4 temp_index 4.8 120 4.8
index 0 temp_index -1.77636e-15 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 9 temp_index 9.6 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 9 temp_index 9.6 120 4.8
index 4 temp_index 4.8 120 4.8
index 0 temp_index -1.77636e-15 120 4.8
index 4 temp_index 4.8 -120 -4.8
index 9 temp_index 9.6 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 14 temp_index 14.4 -120 -4.8
index 9 temp_index 9.6 120 4.8
index 4 temp_index 4.8 120 4.8
index 0 temp_index -1.77636e-15 120 4.8
Cheers,
Laurent
I do confirm that on my Mac is slow or even slower if I change scale_factor variable.
Please try to change scale_value to test if speed changes.
Regards
Giovanni
Hello Giovanni,
I tested it when I got home from work this morning, too tired to have seen the variable scale factor...after a very bad nifght at work..
scale_factor = 0.01; is fine on my Debian.
And scale_factor = 0.005; is fine on macOS.
index 10 temp_index 10.2 120 0.6
index 9 temp_index 9.6 120 0.6
index 8 temp_index 9 120 0.6
index 8 temp_index 8.4 120 0.6
index 7 temp_index 7.8 120 0.6
index 7 temp_index 7.2 120 0.6
index 6 temp_index 6.6 120 0.6
index 6 temp_index 6 120 0.6
index 5 temp_index 5.4 120 0.6
index 4 temp_index 4.8 120 0.6
index 4 temp_index 4.2 120 0.6
index 3 temp_index 3.6 120 0.6
index 3 temp_index 3 120 0.6
index 2 temp_index 2.4 120 0.6
index 1 temp_index 1.8 120 0.6
index 1 temp_index 1.2 120 0.6
index 0 temp_index 0.6 120 0.6
index 1 temp_index 1.2 -120 -0.6
index 1 temp_index 1.8 -120 -0.6
index 2 temp_index 2.4 -120 -0.6
index 3 temp_index 3 -120 -0.6
index 3 temp_index 3.6 -120 -0.6
index 4 temp_index 4.2 -120 -0.6
index 4 temp_index 4.8 -120 -0.6
index 5 temp_index 5.4 -120 -0.6
index 6 temp_index 6 -120 -0.6
index 6 temp_index 6.6 -120 -0.6
index 7 temp_index 7.2 -120 -0.6
index 7 temp_index 7.8 -120 -0.6
index 8 temp_index 8.4 -120 -0.6
index 8 temp_index 9 -120 -0.6
index 9 temp_index 9.6 -120 -0.6
index 10 temp_index 10.2 -120 -0.6
index 10 temp_index 10.8 -120 -0.6
index 11 temp_index 11.4 -120 -0.6
index 10 temp_index 10.8 120 0.6
index 10 temp_index 10.2 120 0.6
index 9 temp_index 9.6 120 0.6
index 8 temp_index 9 120 0.6
index 8 temp_index 8.4 120 0.6
index 7 temp_index 7.8 120 0.6
index 7 temp_index 7.2 120 0.6
index 6 temp_index 6.6 120 0.6
index 6 temp_index 6 120 0.6
index 5 temp_index 5.4 120 0.6
index 4 temp_index 4.8 120 0.6
index 4 temp_index 4.2 120 0.6
index 3 temp_index 3.6 120 0.6
index 3 temp_index 3 120 0.6
index 2 temp_index 2.4 120 0.6
index 1 temp_index 1.8 120 0.6
index 1 temp_index 1.2 120 0.6
index 0 temp_index 0.6 120 0.6
index 0 temp_index 6.66134e-16 120 0.6
Depending on the mouse used, the best way is to add a Spinbox for the user in the QET settings.
Thanks.
Cheers,
Laurent
Thank you for testing it.
i agree for the user setting.
So, let say the scroll and the speed are (almost) working.
Now the problem to solve is the conflict with page zoom also made by scrool wheel.
Tab scroll has to be enabled only when the mouse is over tabs, not in the middle of the page.
I see two possible solutions:
1 orizontal scroll for tabs and vertical scroll for zoom
2 use a "mouse over" function to detect when mouse is over tabs.
I attach the file .h so you can see the scaling method that you have just tested plus solution 1 applied to qet.
Regards
Giovanni
Now the problem to solve is the conflict with page zoom also made by scrool wheel.
Yes, it was a problem raised on the Qt report issue and why it was removed for OSX by upstream since 2015.
I haven't edited previous message.
Using horizontal scroll for tabs and vertical scroll for zoom the problem seems, in my opinion to disappear.
I have done a quick test loading an example file and scrolling and zooming seem to be right
The file I linked is already corrected.
Regards
Giovanni
Hi Giovanni and many thanks for your works, very gracefull. ;-)
QElectroTech → Code → Impossible to scroll page tabs (left-right) on Mac and how to compile
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.031 seconds (43% PHP - 57% DB) with 11 queries